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

Up: slitaz-boot-script (5.6.0) Fix automount + sound initialization
author Christophe Lincoln <pankso@slitaz.org>
date Mon May 05 22:37:15 2014 +0200 (2014-05-05)
parents 17b4140b4e5b
children 9e01bc6321ea
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 LICENSE="MIT"
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 DEPENDS="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-ns/$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-ns/$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-ns/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-ns/current" \
67 "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \
68 $1/etc/xml/catalog
69 status
70 }