description="C library to handle the Public Suffix List"
url="https://github.com/rockdaboot/libpsl"

packager="spiky <spiky@nutyx.org>"

makedepends=(python libidn2 libunistring)

name=libpsl
version=0.21.2

source=(https://github.com/rockdaboot/libpsl/releases/download/$version/$name-$version.tar.gz)
build() {
cd $name-$version

sed -i 's/env python/&3/' src/psl-make-dafsa

./configure --prefix=/usr --disable-static
make
make DESTDIR=$PKG install
# Obsolet libs
rm $PKG/usr/lib/libpsl.la
}
