wok-4.x view docbook-xsl/receipt @ rev 9497
grub4dos: add splash image
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed Apr 06 03:26:48 2011 +0200 (2011-04-06) |
parents | 1111d4610860 |
children | 61d7b63bf7b1 |
line source
1 # SliTaz package receipt.
3 PACKAGE="docbook-xsl"
4 VERSION="1.76.1"
5 CATEGORY="development"
6 SHORT_DESC="DocBook XSL stylesheets."
7 MAINTAINER="paul@slitaz.org"
8 DEPENDS="docbook-xml libxml2-tools libxslt"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://docbook.sourceforge.net/"
11 WGET_URL="$SF_MIRROR/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/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/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/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/current" \
48 "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \
49 $1/etc/xml/catalog
51 # link nwalsh dir
52 cd $1/usr/share/xml/docbook/stylesheet
53 ln -s $PACKAGE nwalsh
54 status
55 }