contrib/docbook-xsl/Pkgfile

37 lines
1.2 KiB
Plaintext

# Description: A collection of XSL stylesheets that are useful for performing transformations on XML DocBook files.
# URL: http://docbook.sourceforge.net/
# Maintainer: Matt Housh, jaeger at crux dot ninja
# Depends on: libxslt docbook-xml
name=docbook-xsl
version=1.79.2
release=2
source=(https://github.com/docbook/xslt10-stylesheets/releases/download/release/$version/$name-$version.tar.bz2
non-recursive-string-subst.patch)
build() {
cd $name-$version
patch -Np2 -i $SRC/non-recursive-string-subst.patch
install -v -m 0755 -d $PKG/usr/share/xml/docbook/xsl-stylesheets-$version
cp -v -R \
VERSION common eclipse epub extensions fo \
highlighting html htmlhelp images javahelp lib manpages \
params profiling roundtrip slides template tests tools website \
xhtml xhtml-1_1 \
$PKG/usr/share/xml/docbook/xsl-stylesheets-$version
ln -s VERSION $PKG/usr/share/xml/docbook/xsl-stylesheets-${version}/VERSION.xsl
ln -sf xsl-stylesheets-$version $PKG/usr/share/xml/docbook/xsl-stylesheets
install -v -m 0644 -D README \
$PKG/usr/share/doc/docbook-xsl-$version/README.txt
install -v -m 0755 RELEASE-NOTES* NEWS* \
$PKG/usr/share/doc/docbook-xsl-$version
find $PKG \( -name "NEWS*" -o -name "README*" -o -name "ChangeLog*" \) -delete
}