libpsl: switch from icu to libidn2

While we're at it, also support runtime public-suffix-list.
This commit is contained in:
Đoàn Trần Công Danh 2023-12-06 17:45:58 +07:00 committed by Đoàn Trần Công Danh
parent 25022e7b5d
commit 736df7da50
1 changed files with 11 additions and 4 deletions

View File

@ -1,20 +1,27 @@
# Template file for 'libpsl'
pkgname=libpsl
version=0.21.2
revision=2
revision=3
build_style=gnu-configure
hostmakedepends="pkg-config python3"
makedepends="icu-devel"
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"
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() {