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

Up tazinst-gui (3.92)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jan 05 22:37:47 2014 +0100 (2014-01-05)
parents 61d7b63bf7b1
children 365611cfc2cf
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 LICENSE="MIT"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://docbook.sourceforge.net/"
11 WGET_URL="$SF_MIRROR/docbook/$TARBALL"
13 DEPENDS="docbook-xml libxml2-tools libxslt"
15 # Rules to gen a SliTaz package suitable for Tazpkg.
16 genpkg_rules()
17 {
18 cd $src
19 pkgroot=$fs/usr/share/xml/docbook/stylesheet/$PACKAGE
20 install -dm755 $pkgroot/common
21 install -dm755 $pkgroot/params
23 for fn in xml xsl dtd ent; do
24 install -m644 common/*.${fn} $pkgroot/common/
25 done
27 for fn in fo highlighting html roundtrip; do
28 install -dm755 ${pkgroot}/${fn}
29 install -m644 ${fn}/*.xml ${pkgroot}/${fn}/
30 install -m644 ${fn}/*.xsl ${pkgroot}/${fn}/
31 done
33 for fn in eclipse htmlhelp javahelp lib manpages profiling template website xhtml xhtml-1_1; do
34 install -dm755 ${pkgroot}/${fn}
35 install -m644 ${fn}/*.xsl ${pkgroot}/${fn}/
36 done
37 }
39 # Pre and post install commands for Tazpkg.
40 post_install()
41 {
42 echo -n "Processing post-install commands..."
44 # Create a /etc/xml/catalog file
45 if [ ! -d $1/etc/xml ]; then install -v -m755 -d $1/etc/xml; fi &&
46 if [ ! -f $1/etc/xml/catalog ]; then
47 xmlcatalog --noout --create $1/etc/xml/catalog
48 fi &&
50 xmlcatalog --noout --add "rewriteSystem" \
51 "http://docbook.sourceforge.net/release/xsl/$VERSION" \
52 "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \
53 $1/etc/xml/catalog &&
55 xmlcatalog --noout --add "rewriteURI" \
56 "http://docbook.sourceforge.net/release/xsl/$VERSION" \
57 "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \
58 $1/etc/xml/catalog &&
60 xmlcatalog --noout --add "rewriteSystem" \
61 "http://docbook.sourceforge.net/release/xsl/current" \
62 "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \
63 $1/etc/xml/catalog &&
65 xmlcatalog --noout --add "rewriteURI" \
66 "http://docbook.sourceforge.net/release/xsl/current" \
67 "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \
68 $1/etc/xml/catalog
70 # link nwalsh dir
71 cd $1/usr/share/xml/docbook/stylesheet
72 ln -s $PACKAGE nwalsh
73 status
74 }