wok-current rev 6996
Add docbook-xsl-ns
author | Paul Issott <paul@slitaz.org> |
---|---|
date | Sun Oct 31 11:00:02 2010 +0000 (2010-10-31) |
parents | 2e7bfa3045a0 |
children | 4f69e201b1c3 |
files | docbook-xsl-ns/receipt |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/docbook-xsl-ns/receipt Sun Oct 31 11:00:02 2010 +0000 1.3 @@ -0,0 +1,52 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="docbook-xsl-ns" 1.7 +VERSION="1.76.0" 1.8 +CATEGORY="development" 1.9 +SHORT_DESC="DocBook XSL (namespaced) stylesheets." 1.10 +MAINTAINER="paul@slitaz.org" 1.11 +DEPENDS="libxml2-tools libxslt" 1.12 +TARBALL="$PACKAGE-$VERSION.tar.bz2" 1.13 +WEB_SITE="http://wiki.docbook.org/topic/DocBookXslStylesheets" 1.14 +WGET_URL="http://jaist.dl.sourceforge.net/sourceforge/docbook/$TARBALL" 1.15 + 1.16 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.17 +genpkg_rules() 1.18 +{ 1.19 + mkdir -p $fs/usr/share/xml/docbook/stylesheet/$PACKAGE 1.20 + cp -a $src/* $fs/usr/share/xml/docbook/stylesheet/$PACKAGE 1.21 +} 1.22 + 1.23 +# Pre and post install commands for Tazpkg. 1.24 +post_install() 1.25 +{ 1.26 + echo -n "Processing post-install commands..." 1.27 + 1.28 + # Create a /etc/xml/catalog file 1.29 + if [ ! -d $1/etc/xml ]; then install -v -m755 -d $1/etc/xml; fi && 1.30 + if [ ! -f $1/etc/xml/catalog ]; then 1.31 + xmlcatalog --noout --create $1/etc/xml/catalog 1.32 + fi && 1.33 + 1.34 + xmlcatalog --noout --add "rewriteSystem" \ 1.35 + "http://docbook.sourceforge.net/release/xsl-ns/1.76.0" \ 1.36 + "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \ 1.37 + $1/etc/xml/catalog && 1.38 + 1.39 + xmlcatalog --noout --add "rewriteURI" \ 1.40 + "http://docbook.sourceforge.net/release/xsl-ns/1.76.0" \ 1.41 + "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \ 1.42 + $1/etc/xml/catalog && 1.43 + 1.44 + xmlcatalog --noout --add "rewriteSystem" \ 1.45 + "http://docbook.sourceforge.net/release/xsl-ns/current" \ 1.46 + "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \ 1.47 + $1/etc/xml/catalog && 1.48 + 1.49 + xmlcatalog --noout --add "rewriteURI" \ 1.50 + "http://docbook.sourceforge.net/release/xsl-ns/current" \ 1.51 + "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \ 1.52 + $1/etc/xml/catalog 1.53 + status 1.54 +} 1.55 +