35 lines
939 B
Plaintext
35 lines
939 B
Plaintext
# Description: Public Suffix List library.
|
|
# URL: https://github.com/rockdaboot/libpsl
|
|
# Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
|
|
# Depends on: libpsl libunistring-32
|
|
|
|
name=libpsl-32
|
|
version=0.21.0
|
|
release=2
|
|
source=(https://github.com/rockdaboot/${name%-*}/releases/download/${name%-*}-$version/${name%-*}-$version.tar.gz
|
|
libpsl-gtk-doc-1.30-fix.patch
|
|
libpsl-0.21.0-build-fix.patch)
|
|
|
|
build() {
|
|
cd ${name%-*}-$version
|
|
|
|
patch -p1 -i $SRC/libpsl-gtk-doc-1.30-fix.patch
|
|
patch -p1 -i $SRC/libpsl-0.21.0-build-fix.patch
|
|
rm -frv list
|
|
autoreconf -fiv
|
|
|
|
sed -e 's|^#!/usr/bin/env python$|#!/usr/bin/env python3|' \
|
|
-i src/psl-make-dafsa
|
|
|
|
./configure \
|
|
--prefix=/usr \
|
|
--libdir=/usr/lib32 \
|
|
--with-psl-file=/usr/share/publicsuffix/effective_tld_names.dat \
|
|
--with-psl-testfile=/usr/share/publicsuffix/test_psl.txt
|
|
|
|
LC_CTYPE=en_US.UTF-8 make
|
|
make DESTDIR=$PKG install
|
|
|
|
rm -r $PKG/usr/{bin,include,share}
|
|
}
|