jobextra/docbook-xsl/PKGBUILD
2022-03-20 14:34:07 +02:00

57 lines
1.8 KiB
Bash

#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=docbook-xsl
pkgver=1.79.2
pkgrel=07
pkgdesc='XML stylesheets for Docbook-xml transformations'
url='https://docbook.org/'
arch=(any)
install=$pkgname.install
source=(https://github.com/docbook/xslt10-stylesheets/releases/download/release%2F$pkgver/docbook-xsl{,-nons}-$pkgver.tar.gz
765567_non-recursive_string_subst.patch)
prepare() {
cd $pkgname-$pkgver
patch -Np2 -i ../765567_non-recursive_string_subst.patch
cd ../$pkgname-nons-$pkgver
patch -Np2 -i ../765567_non-recursive_string_subst.patch
}
package() {
depends=(libxml2 libxslt docbook-xml)
local pkgroot ns dir
for ns in -nons ''; do
pkgroot="$pkgdir/usr/share/xml/docbook/xsl-stylesheets-$pkgver$ns"
dir=$pkgname$ns-$pkgver
install -Dt "$pkgroot" -m644 $dir/VERSION{,.xsl}
(
shopt -s nullglob # ignore missing files
for fn in assembly common eclipse epub epub3 fo highlighting html \
htmlhelp javahelp lib manpages params profiling roundtrip template \
website xhtml xhtml-1_1 xhtml5
do
install -Dt "$pkgroot/$fn" -m644 $dir/$fn/*.{xml,xsl,dtd,ent}
done
)
done
install -d "$pkgdir/etc/xml"
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 $dir/COPYING
}
#---- license gpg-key sha256sums ----
license=(custom)
sha256sums=(966188d7c05fc76eaca115a55893e643dd01a3486f6368733c9ad974fcee7a26 # docbook-xsl-1.79.2.tar.gz
f89425b44e48aad24319a2f0d38e0cb6059fdc7dbaf31787c8346c748175ca8e # docbook-xsl-nons-1.79.2.tar.gz
193ec26dcb37bdf12037ed4ea98d68bd550500c8e96b719685d76d7096c3f9b3) # 765567_non-recursive_string_subst.patch