# HG changeset patch # User Christopher Rogers # Date 1288315407 0 # Node ID 1111d4610860405c93557211c2daa2b90fba0390 # Parent 086402ab7a61302824000a2f92304ed83b982ada Added docbook-xsl. diff -r 086402ab7a61 -r 1111d4610860 docbook-xsl/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/docbook-xsl/receipt Fri Oct 29 01:23:27 2010 +0000 @@ -0,0 +1,56 @@ +# SliTaz package receipt. + +PACKAGE="docbook-xsl" +VERSION="1.76.0" +CATEGORY="development" +SHORT_DESC="DocBook XSL stylesheets." +MAINTAINER="paul@slitaz.org" +DEPENDS="docbook-xml libxml2-tools libxslt" +TARBALL="$PACKAGE-$VERSION.tar.bz2" +WEB_SITE="http://wiki.docbook.org/topic/DocBookXslStylesheets" +WGET_URL="$SF_MIRROR/docbook/$TARBALL" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/share/xml/docbook/stylesheet/$PACKAGE + cp -a $src/* $fs/usr/share/xml/docbook/stylesheet/$PACKAGE +} + +# Pre and post install commands for Tazpkg. +post_install() +{ + echo -n "Processing post-install commands..." + + # Create a /etc/xml/catalog file + if [ ! -d $1/etc/xml ]; then install -v -m755 -d $1/etc/xml; fi && + if [ ! -f $1/etc/xml/catalog ]; then + xmlcatalog --noout --create $1/etc/xml/catalog + fi && + + xmlcatalog --noout --add "rewriteSystem" \ + "http://docbook.sourceforge.net/release/xsl/1.76.0" \ + "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \ + $1/etc/xml/catalog && + + xmlcatalog --noout --add "rewriteURI" \ + "http://docbook.sourceforge.net/release/xsl/1.76.0" \ + "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \ + $1/etc/xml/catalog && + + xmlcatalog --noout --add "rewriteSystem" \ + "http://docbook.sourceforge.net/release/xsl/current" \ + "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \ + $1/etc/xml/catalog && + + xmlcatalog --noout --add "rewriteURI" \ + "http://docbook.sourceforge.net/release/xsl/current" \ + "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \ + $1/etc/xml/catalog + + # link nwalsh dir + cd $1/usr/share/xml/docbook/stylesheet + ln -s $PACKAGE nwalsh + status +} +