#!/bin/mkpkg # description: DocBook XSL stylesheets (non-namespaced) # url: https://github.com/docbook/xslt10-stylesheets name=docbook-xsl version=1.79.2 release=1 makedeps=(libxml2 libxslt) source=(https://github.com/docbook/xslt10-stylesheets/releases/download/release/$version/docbook-xsl-nons-$version.tar.bz2) sha256sums=( "ee8b9eca0b7a8f89075832a2da7534bce8c5478fc8fc2676f512d5d87d832102" ) build() { cd docbook-xsl-nons-$version _dest=$PKG/usr/share/xml/docbook/xsl-stylesheets-$version install -d $_dest cp -R VERSION assembly common eclipse epub epub3 extensions fo \ highlighting html htmlhelp images javahelp lib manpages params \ profiling roundtrip slides template tools webhelp website \ xhtml xhtml-1_1 xhtml5 \ $_dest ln -s VERSION $_dest/VERSION.xsl # Set up XML catalog entries install -d $PKG/etc/xml xmlcatalog --noout --create $PKG/etc/xml/catalog xmlcatalog --noout --add "rewriteSystem" \ "http://docbook.sourceforge.net/release/xsl/current" \ "/usr/share/xml/docbook/xsl-stylesheets-$version" \ $PKG/etc/xml/catalog xmlcatalog --noout --add "rewriteURI" \ "http://docbook.sourceforge.net/release/xsl/current" \ "/usr/share/xml/docbook/xsl-stylesheets-$version" \ $PKG/etc/xml/catalog xmlcatalog --noout --add "rewriteSystem" \ "https://cdn.docbook.org/release/xsl/current" \ "/usr/share/xml/docbook/xsl-stylesheets-$version" \ $PKG/etc/xml/catalog xmlcatalog --noout --add "rewriteURI" \ "https://cdn.docbook.org/release/xsl/current" \ "/usr/share/xml/docbook/xsl-stylesheets-$version" \ $PKG/etc/xml/catalog # Remove tests and docs rm -rf $_dest/tests } signify() { untrusted comment: public key RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3 } # vim: filetype=sh