contrib/docbook-xsl/Pkgfile

37 lines
1.2 KiB
Plaintext
Raw Normal View History

# Description: A collection of XSL stylesheets that are useful for performing transformations on XML DocBook files.
2010-12-15 15:50:11 +01:00
# URL: http://docbook.sourceforge.net/
# Maintainer: Matt Housh, jaeger at crux dot ninja
# Depends on: libxslt docbook-xml
2010-12-15 15:50:11 +01:00
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)
2010-12-15 15:50:11 +01:00
build() {
cd $name-$version
patch -Np2 -i $SRC/non-recursive-string-subst.patch
2010-12-15 15:50:11 +01:00
install -v -m 0755 -d $PKG/usr/share/xml/docbook/xsl-stylesheets-$version
2014-02-21 12:25:59 +01:00
cp -v -R \
VERSION common eclipse epub extensions fo \
highlighting html htmlhelp images javahelp lib manpages \
2014-02-21 12:25:59 +01:00
params profiling roundtrip slides template tests tools website \
xhtml xhtml-1_1 \
2010-12-15 15:50:11 +01:00
$PKG/usr/share/xml/docbook/xsl-stylesheets-$version
ln -s VERSION $PKG/usr/share/xml/docbook/xsl-stylesheets-${version}/VERSION.xsl
2014-02-21 12:25:59 +01:00
ln -sf xsl-stylesheets-$version $PKG/usr/share/xml/docbook/xsl-stylesheets
2010-12-15 15:50:11 +01:00
install -v -m 0644 -D README \
2014-02-21 12:25:59 +01:00
$PKG/usr/share/doc/docbook-xsl-$version/README.txt
2010-12-15 15:50:11 +01:00
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
2010-12-15 15:50:11 +01:00
}