wok-current annotate docbook-xsl-ns/receipt @ rev 7792

Add makeself. Utility to create self-extracting packages. Needed to build virtualbox-ose 4.0.0.
author Christopher Rogers <slaxemulator@gmail.com>
date Fri Dec 24 02:48:32 2010 +0000 (2010-12-24)
parents 8dff92fa66c4
children 17b4140b4e5b
rev   line source
paul@6996 1 # SliTaz package receipt.
paul@6996 2
paul@6996 3 PACKAGE="docbook-xsl-ns"
paul@7711 4 VERSION="1.76.1"
paul@6996 5 CATEGORY="development"
paul@6996 6 SHORT_DESC="DocBook XSL (namespaced) stylesheets."
paul@6996 7 MAINTAINER="paul@slitaz.org"
paul@6996 8 DEPENDS="libxml2-tools libxslt"
paul@6996 9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
paul@6996 10 WEB_SITE="http://wiki.docbook.org/topic/DocBookXslStylesheets"
paul@6996 11 WGET_URL="http://jaist.dl.sourceforge.net/sourceforge/docbook/$TARBALL"
paul@6996 12
paul@6996 13 # Rules to gen a SliTaz package suitable for Tazpkg.
paul@6996 14 genpkg_rules()
paul@6996 15 {
paul@6996 16 mkdir -p $fs/usr/share/xml/docbook/stylesheet/$PACKAGE
paul@6996 17 cp -a $src/* $fs/usr/share/xml/docbook/stylesheet/$PACKAGE
paul@6996 18 }
paul@6996 19
paul@6996 20 # Pre and post install commands for Tazpkg.
paul@6996 21 post_install()
paul@6996 22 {
paul@6996 23 echo -n "Processing post-install commands..."
paul@6996 24
paul@6996 25 # Create a /etc/xml/catalog file
paul@6996 26 if [ ! -d $1/etc/xml ]; then install -v -m755 -d $1/etc/xml; fi &&
paul@6996 27 if [ ! -f $1/etc/xml/catalog ]; then
paul@6996 28 xmlcatalog --noout --create $1/etc/xml/catalog
paul@6996 29 fi &&
paul@6996 30
paul@6996 31 xmlcatalog --noout --add "rewriteSystem" \
paul@6996 32 "http://docbook.sourceforge.net/release/xsl-ns/1.76.0" \
paul@6996 33 "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \
paul@6996 34 $1/etc/xml/catalog &&
paul@6996 35
paul@6996 36 xmlcatalog --noout --add "rewriteURI" \
paul@6996 37 "http://docbook.sourceforge.net/release/xsl-ns/1.76.0" \
paul@6996 38 "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \
paul@6996 39 $1/etc/xml/catalog &&
paul@6996 40
paul@6996 41 xmlcatalog --noout --add "rewriteSystem" \
paul@6996 42 "http://docbook.sourceforge.net/release/xsl-ns/current" \
paul@6996 43 "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \
paul@6996 44 $1/etc/xml/catalog &&
paul@6996 45
paul@6996 46 xmlcatalog --noout --add "rewriteURI" \
paul@6996 47 "http://docbook.sourceforge.net/release/xsl-ns/current" \
paul@6996 48 "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \
paul@6996 49 $1/etc/xml/catalog
paul@6996 50 status
paul@6996 51 }
paul@6996 52