1 # Maintainer: Antonio Rojas <arojas@archlinux.org>
2 # Contributor: Tom Gundersen <teg@jklm.no>
3 # Contributor: Jan de Groot <jgc@archlinux.org>
4 # Contributor: Sean Middleditch <elanthis@awesomeplay.com>
5 # Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
10 pkgdesc='XML stylesheets for Docbook-xml transformations'
11 url='https://docbook.org/'
14 install=$pkgname.install
15 source=(https://github.com/docbook/xslt10-stylesheets/releases/download/release%2F$pkgver/docbook-xsl{,-nons}-$pkgver.tar.gz
16 765567_non-recursive_string_subst.patch)
17 sha256sums=('966188d7c05fc76eaca115a55893e643dd01a3486f6368733c9ad974fcee7a26'
18 'f89425b44e48aad24319a2f0d38e0cb6059fdc7dbaf31787c8346c748175ca8e'
19 '193ec26dcb37bdf12037ed4ea98d68bd550500c8e96b719685d76d7096c3f9b3')
23 patch -Np2 -i ../765567_non-recursive_string_subst.patch
25 cd ../$pkgname-nons-$pkgver
26 patch -Np2 -i ../765567_non-recursive_string_subst.patch
30 depends=(libxml2 libxslt docbook-xml)
33 for ns in -nons ''; do
34 pkgroot="$pkgdir/usr/share/xml/docbook/xsl-stylesheets-$pkgver$ns"
35 dir=$pkgname$ns-$pkgver
37 install -Dt "$pkgroot" -m644 $dir/VERSION{,.xsl}
40 shopt -s nullglob # ignore missing files
41 for fn in assembly common eclipse epub epub3 fo highlighting html \
42 htmlhelp javahelp lib manpages params profiling roundtrip template \
43 website xhtml xhtml-1_1 xhtml5
45 install -Dt "$pkgroot/$fn" -m644 $dir/$fn/*.{xml,xsl,dtd,ent}
50 install -d "$pkgdir/etc/xml"
51 install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 $dir/COPYING