2018-03-19 13:58:33 +00:00
|
|
|
# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
|
|
|
|
# Contributor: Darshit Shah <darnir@gmail.com>
|
|
|
|
|
|
|
|
# no changes, hold for soname bumps
|
|
|
|
|
|
|
|
pkgname=libpsl
|
2023-01-06 15:41:03 +00:00
|
|
|
pkgver=0.21.2
|
|
|
|
pkgrel=1
|
2018-03-19 13:58:33 +00:00
|
|
|
pkgdesc='Public Suffix List library'
|
|
|
|
url='https://github.com/rockdaboot/libpsl'
|
|
|
|
arch=('x86_64')
|
|
|
|
license=('MIT')
|
2022-11-08 01:06:54 +00:00
|
|
|
depends=('libidn2' 'libunistring')
|
2018-03-19 13:58:33 +00:00
|
|
|
makedepends=('libxslt' 'python' 'publicsuffix-list' 'gtk-doc')
|
2018-03-23 12:39:49 +00:00
|
|
|
provides=('libpsl.so')
|
2020-08-30 17:35:35 +00:00
|
|
|
source=(https://github.com/rockdaboot/libpsl/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.gz)
|
2023-01-06 15:41:03 +00:00
|
|
|
sha512sums=('f1df72220bf4391d4701007100b0df66c833a2cbcb7481c9d13f0b9e0cad3b66d2d15d4b976e5bad60d2ad1540355112fa1acb07aa925c241d2d7cd20681c71d')
|
|
|
|
b2sums=('b50f805bb467dc3284bc91645a37a2208098ad809d3771c74ef13c3b8f6029a07ad80a56702c7e3d1a1125d272403c85dd97b64a28465b9ff2d095eaf94b9a4d')
|
2018-03-19 13:58:33 +00:00
|
|
|
|
|
|
|
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() {
|
2022-11-08 01:06:54 +00:00
|
|
|
depends+=('libidn2.so' 'libunistring.so')
|
|
|
|
|
2018-03-19 13:58:33 +00:00
|
|
|
cd ${pkgname}-${pkgver}
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
install -Dm 644 COPYING -t "${pkgdir}/usr/share/licenses/${pkgname}"
|
|
|
|
}
|
|
|
|
|
|
|
|
# vim: ts=2 sw=2 et:
|