wok-6.x annotate docbook-xsl/receipt @ rev 8006
Up: file to 5.05.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Tue Jan 18 15:37:33 2011 +0000 (2011-01-18) |
parents | 1111d4610860 |
children | 61d7b63bf7b1 |
rev | line source |
---|---|
slaxemulator@6984 | 1 # SliTaz package receipt. |
slaxemulator@6984 | 2 |
slaxemulator@6984 | 3 PACKAGE="docbook-xsl" |
slaxemulator@7624 | 4 VERSION="1.76.1" |
slaxemulator@6984 | 5 CATEGORY="development" |
slaxemulator@6984 | 6 SHORT_DESC="DocBook XSL stylesheets." |
slaxemulator@6984 | 7 MAINTAINER="paul@slitaz.org" |
slaxemulator@6984 | 8 DEPENDS="docbook-xml libxml2-tools libxslt" |
slaxemulator@6984 | 9 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
slaxemulator@7624 | 10 WEB_SITE="http://docbook.sourceforge.net/" |
slaxemulator@6984 | 11 WGET_URL="$SF_MIRROR/docbook/$TARBALL" |
slaxemulator@6984 | 12 |
slaxemulator@6984 | 13 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@6984 | 14 genpkg_rules() |
slaxemulator@6984 | 15 { |
slaxemulator@6984 | 16 mkdir -p $fs/usr/share/xml/docbook/stylesheet/$PACKAGE |
slaxemulator@6984 | 17 cp -a $src/* $fs/usr/share/xml/docbook/stylesheet/$PACKAGE |
slaxemulator@6984 | 18 } |
slaxemulator@6984 | 19 |
slaxemulator@6984 | 20 # Pre and post install commands for Tazpkg. |
slaxemulator@6984 | 21 post_install() |
slaxemulator@6984 | 22 { |
slaxemulator@6984 | 23 echo -n "Processing post-install commands..." |
slaxemulator@6984 | 24 |
slaxemulator@6984 | 25 # Create a /etc/xml/catalog file |
slaxemulator@6984 | 26 if [ ! -d $1/etc/xml ]; then install -v -m755 -d $1/etc/xml; fi && |
slaxemulator@6984 | 27 if [ ! -f $1/etc/xml/catalog ]; then |
slaxemulator@6984 | 28 xmlcatalog --noout --create $1/etc/xml/catalog |
slaxemulator@6984 | 29 fi && |
slaxemulator@6984 | 30 |
slaxemulator@6984 | 31 xmlcatalog --noout --add "rewriteSystem" \ |
slaxemulator@6984 | 32 "http://docbook.sourceforge.net/release/xsl/1.76.0" \ |
slaxemulator@6984 | 33 "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \ |
slaxemulator@6984 | 34 $1/etc/xml/catalog && |
slaxemulator@6984 | 35 |
slaxemulator@6984 | 36 xmlcatalog --noout --add "rewriteURI" \ |
slaxemulator@6984 | 37 "http://docbook.sourceforge.net/release/xsl/1.76.0" \ |
slaxemulator@6984 | 38 "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \ |
slaxemulator@6984 | 39 $1/etc/xml/catalog && |
slaxemulator@6984 | 40 |
slaxemulator@6984 | 41 xmlcatalog --noout --add "rewriteSystem" \ |
slaxemulator@6984 | 42 "http://docbook.sourceforge.net/release/xsl/current" \ |
slaxemulator@6984 | 43 "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \ |
slaxemulator@6984 | 44 $1/etc/xml/catalog && |
slaxemulator@6984 | 45 |
slaxemulator@6984 | 46 xmlcatalog --noout --add "rewriteURI" \ |
slaxemulator@6984 | 47 "http://docbook.sourceforge.net/release/xsl/current" \ |
slaxemulator@6984 | 48 "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \ |
slaxemulator@6984 | 49 $1/etc/xml/catalog |
slaxemulator@6984 | 50 |
slaxemulator@6984 | 51 # link nwalsh dir |
slaxemulator@6984 | 52 cd $1/usr/share/xml/docbook/stylesheet |
slaxemulator@6984 | 53 ln -s $PACKAGE nwalsh |
slaxemulator@6984 | 54 status |
slaxemulator@6984 | 55 } |
slaxemulator@6984 | 56 |