1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
2 # Contributor: Eric Belanger <eric@archlinux.org>
3 # Contributor: John Proctor <jproctor@prium.net>
6 pkgname=(libxslt libxslt-docs)
9 pkgdesc="XML stylesheet transformation library"
10 url="https://gitlab.gnome.org/GNOME/libxslt/-/wikis/home"
25 _commit=5eca7fb65b7337409a02f9f94fde608edf7d1b0a # tags/v1.1.37^0
26 source=("git+https://gitlab.gnome.org/GNOME/libxslt.git#commit=$_commit"
27 0001-Make-generate-id-deterministic.patch)
29 '605e0a0b2ca385a90226bc5b141d3f6bfeade13e43ab39f8dea863505d7cbf18')
33 git describe --tags | sed 's/-rc/rc/;s/^v//;s/[^-]*-g/r&/;s/-/+/g'
39 # Make xsltproc output reproducible for packages which use it to generate documentation
40 git apply -3 ../0001-Make-generate-id-deterministic.patch
42 NOCONFIGURE=1 ./autogen.sh
51 --localstatedir=/var \
52 --with-python=/usr/bin/python \
54 sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
64 optdepends=('python: Python bindings')
65 provides=(lib{,e}xslt.so)
69 make DESTDIR="$pkgdir" install
71 mkdir -p ../doc/usr/share
72 mv "$pkgdir"/usr/share/{doc,gtk-doc} -t ../doc/usr/share
74 install -Dm644 Copyright -t "$pkgdir/usr/share/licenses/$pkgname"
77 package_libxslt-docs() {
78 pkgdesc+=" (documentation)"
83 install -Dm644 libxslt/Copyright -t "$pkgdir/usr/share/licenses/$pkgname"
86 # vim:set sw=2 sts=-1 et: