# HG changeset patch # User Paul Issott # Date 1288522802 0 # Node ID 8dff92fa66c428203b1a4642d113c8db56d21c84 # Parent 2e7bfa3045a0f5161545ad93d3dd77a802009496 Add docbook-xsl-ns diff -r 2e7bfa3045a0 -r 8dff92fa66c4 docbook-xsl-ns/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/docbook-xsl-ns/receipt Sun Oct 31 11:00:02 2010 +0000 @@ -0,0 +1,52 @@ +# SliTaz package receipt. + +PACKAGE="docbook-xsl-ns" +VERSION="1.76.0" +CATEGORY="development" +SHORT_DESC="DocBook XSL (namespaced) stylesheets." +MAINTAINER="paul@slitaz.org" +DEPENDS="libxml2-tools libxslt" +TARBALL="$PACKAGE-$VERSION.tar.bz2" +WEB_SITE="http://wiki.docbook.org/topic/DocBookXslStylesheets" +WGET_URL="http://jaist.dl.sourceforge.net/sourceforge/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-ns/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-ns/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-ns/current" \ + "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \ + $1/etc/xml/catalog && + + xmlcatalog --noout --add "rewriteURI" \ + "http://docbook.sourceforge.net/release/xsl-ns/current" \ + "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \ + $1/etc/xml/catalog + status +} +