wok-6.x view docbook-xsl/receipt @ rev 7593

Busybox config change: unset CONFIG_AR (it conflict with binutils ar) & unset CONFIG_XZ (only unxz is actually usefull - it appears that lzma legacy is our better compression tool)
author Antoine Bodin <gokhlayeh@slitaz.org>
date Fri Dec 10 19:35:10 2010 +0100 (2010-12-10)
parents
children 8e7c178e1fc8
line source
1 # SliTaz package receipt.
3 PACKAGE="docbook-xsl"
4 VERSION="1.76.0"
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://wiki.docbook.org/topic/DocBookXslStylesheets"
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 }