# Maintainer: Natanael Copa # Contributor: Francesco Colista pkgname=libxslt pkgver=1.1.32 pkgrel=0 pkgdesc="XML stylesheet transformation library" url="http://xmlsoft.org/XSLT/" arch="all" license="custom" makedepends="libxml2-dev libgcrypt-dev libgpg-error-dev python2-dev" subpackages="$pkgname-dev $pkgname-doc py2-$pkgname:py2" source="http://xmlsoft.org/sources/$pkgname-$pkgver.tar.gz" builddir="$srcdir/$pkgname-$pkgver" # secfixes: # 1.1.29-r1: # - CVE-2017-5029 build() { cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr make } package() { cd "$builddir" make DESTDIR="$pkgdir" install install -D -m644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING } py2() { pkgdesc="$pkgname python2 bindings" provides="py-libxslt=$pkgver-r$pkgrel" # for backward compatibility replaces="py-libxslt" # for backward compatibility install -d "$subpkgdir"/usr/lib mv "$pkgdir"/usr/lib/python* "$subpkgdir"/usr/lib/ } sha512sums="e1ed3c103cd4c9897e7dd2360a11f63cf30382b7566ce6fcc81117804e203714446b5a62179ce628c3834b0b32ecdeeceecbdfa417507ce9ed5a107a0ebefb39 libxslt-1.1.32.tar.gz"