12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- # Maintainer (Arch): Levente Polyak <anthraxx[at]archlinux[dot]org>
- # Contributor (Arch): Darshit Shah <darnir@gmail.com>
- # Maintainer: André Silva <emulatorman@hyperbola.info>
- # Contributor: Tobias Dausend <throgh@hyperbola.info>
- pkgname=libpsl
- pkgver=0.21.0
- _debver=$pkgver
- _debrel=1.2
- pkgrel=3
- pkgdesc="Public Suffix List library"
- url='https://github.com/rockdaboot/libpsl'
- arch=('i686' 'x86_64')
- license=('Expat')
- depends=('icu>=67.1')
- makedepends=('libxslt' 'python' 'publicsuffix' 'quilt')
- source=(https://github.com/rockdaboot/libpsl/releases/download/${pkgname}-${pkgver}/${pkgname}-${pkgver}.tar.gz
- https://deb.debian.org/debian/pool/main/libp/libpsl/libpsl_${_debver}-${_debrel}.debian.tar.xz)
- sha512sums=('165c4f0b0640a813d512bd916e1532e32e43c8c81a5efd048f3a5b07b1b3c9129b4c4b5008b8b11a7c1b3914caea17564321389cd350bf1d687d53a97f2afa4d'
- '2e91a28f8575166758a58de4f247988b4355af166316feafc44f47e1b5a516e6e174ba47e1c80093830cf001f21e9b4daf2127e46406d599dda6c2cb714e2284')
- prepare() {
- cd ${pkgname}-${pkgver}
- if [[ ${pkgver%.*} = ${_debver%.*} ]]; then
- # Debian patches
- export QUILT_PATCHES=debian/patches
- export QUILT_REFRESH_ARGS='-p ab --no-timestamps --no-index'
- export QUILT_DIFF_ARGS='--no-timestamps'
- mv "$srcdir"/debian .
- # Doesn't apply
- rm -v debian/patches/0001-remove-git-submodules.patch || true
- quilt push -av
- fi
- rm -frv list
- autoreconf -fiv
- }
- build() {
- cd ${pkgname}-${pkgver}
- ./configure \
- --prefix=/usr \
- --disable-static \
- --disable-dependency-tracking \
- --enable-man \
- --enable-{builtin,runtime}=libicu \
- --with-psl-file=/usr/share/publicsuffix/effective_tld_names.dat \
- --with-psl-testfile=/usr/share/publicsuffix/test_psl.txt
- sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
- LC_CTYPE=en_US.UTF-8 make
- }
- package() {
- cd ${pkgname}-${pkgver}
- make DESTDIR="${pkgdir}" install
- # we don't support gtk-doc
- rm -rf $pkgdir/usr/share/gtk-doc
- install -Dm 644 COPYING -t "${pkgdir}/usr/share/licenses/${pkgname}"
- install -Dm 644 docs/libpsl/libpsl.3 -t "${pkgdir}/usr/share/man/man3"
- }
|