added core/libpsl

This commit is contained in:
Kevin Mihelich 2018-03-19 13:58:33 +00:00
parent 6a11e9cfb0
commit 3c3080e398

49
core/libpsl/PKGBUILD Normal file
View file

@ -0,0 +1,49 @@
# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
# Contributor: Darshit Shah <darnir@gmail.com>
# no changes, hold for soname bumps
pkgname=libpsl
pkgver=0.20.1
pkgrel=1
pkgdesc='Public Suffix List library'
url='https://github.com/rockdaboot/libpsl'
arch=('x86_64')
license=('MIT')
depends=('libidn2' 'libunistring')
makedepends=('libxslt' 'python' 'publicsuffix-list' 'gtk-doc')
source=(https://github.com/rockdaboot/libpsl/releases/download/${pkgname}-${pkgver}/${pkgname}-${pkgver}.tar.gz)
sha512sums=('5a6c54c3a0aafef3eaa309bf3147179d41393fb63d7e6276a3e02705ae5c4005c61b3f8b13636eac0570ac20033c1c9b1a51937a06b56a30a4461ff9b1f955be')
prepare() {
cd ${pkgname}-${pkgver}
rm -frv list
autoreconf -fiv
}
build() {
cd ${pkgname}-${pkgver}
./configure \
--prefix=/usr \
--disable-static \
--disable-dependency-tracking \
--enable-man \
--enable-gtk-doc \
--enable-{builtin,runtime}=libidn2 \
--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
}
check() {
cd ${pkgname}-${pkgver}
make check
}
package() {
cd ${pkgname}-${pkgver}
make DESTDIR="${pkgdir}" install
install -Dm 644 COPYING -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
# vim: ts=2 sw=2 et: