sbcl 2.1.11 rebuild
[arch-packages.git] / docbook-xsl / repos / extra-any / PKGBUILD
blob0f0c385c46cd909bda6ecaeac1700e79ea63a559
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>
7 pkgname=docbook-xsl
8 pkgver=1.79.2
9 pkgrel=7
10 pkgdesc='XML stylesheets for Docbook-xml transformations'
11 url='https://docbook.org/'
12 arch=(any)
13 license=(custom)
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')
21 prepare() {
22   cd $pkgname-$pkgver
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
29 package() {
30   depends=(libxml2 libxslt docbook-xml)
32   local pkgroot ns dir
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}
39     (
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
44       do
45         install -Dt "$pkgroot/$fn" -m644 $dir/$fn/*.{xml,xsl,dtd,ent}
46       done
47     )
48   done
50   install -d "$pkgdir/etc/xml"
51   install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 $dir/COPYING
54 # vim:set sw=2 et: