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