void-packages/srcpkgs/libpsl/template
Đoàn Trần Công Danh 736df7da50 libpsl: switch from icu to libidn2
While we're at it, also support runtime public-suffix-list.
2023-12-09 17:47:11 +07:00

36 lines
1.1 KiB
Bash

# Template file for 'libpsl'
pkgname=libpsl
version=0.21.2
revision=3
build_style=gnu-configure
configure_args="--enable-runtime=libidn2
--with-psl-distfile=/usr/share/publicsuffix/public_suffix_list.dafsa
--with-psl-file=/usr/share/publicsuffix/public_suffix_list.dat"
hostmakedepends="pkg-config python3 public-suffix"
makedepends="libidn2-devel libunistring-devel"
depends="public-suffix"
short_desc="Public Suffix List library functions"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT, BSD-3-Clause"
homepage="https://rockdaboot.github.io/libpsl/"
changelog="https://raw.githubusercontent.com/rockdaboot/libpsl/master/NEWS"
distfiles="https://github.com/rockdaboot/libpsl/releases/download/${version}/libpsl-${version}.tar.gz"
checksum=e35991b6e17001afa2c0ca3b10c357650602b92596209b7492802f3768a6285f
python_version=3
post_install() {
vbin src/psl-make-dafsa
vlicense COPYING
vlicense src/LICENSE.chromium
}
libpsl-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
vmove "usr/lib/*.a"
}
}