wok view docbook-xsl-ns/receipt @ rev 12436

libccls: update bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Apr 21 17:47:57 2012 +0200 (2012-04-21)
parents 6ce472884aeb
children eb8067417980
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 DEPENDS="libxml2-tools libxslt"
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 # Rules to gen a SliTaz package suitable for Tazpkg.
14 genpkg_rules()
15 {
16 cd $src
17 pkgroot=$fs/usr/share/xml/docbook/stylesheet/$PACKAGE
18 install -dm755 $pkgroot/common
19 install -dm755 $pkgroot/params
21 for fn in xml xsl dtd ent; do
22 install -m644 common/*.${fn} $pkgroot/common/
23 done
25 for fn in fo highlighting html roundtrip; do
26 install -dm755 ${pkgroot}/${fn}
27 install -m644 ${fn}/*.xml ${pkgroot}/${fn}/
28 install -m644 ${fn}/*.xsl ${pkgroot}/${fn}/
29 done
31 for fn in eclipse htmlhelp javahelp lib manpages profiling template website xhtml xhtml-1_1; do
32 install -dm755 ${pkgroot}/${fn}
33 install -m644 ${fn}/*.xsl ${pkgroot}/${fn}/
34 done
35 }
37 # Pre and post install commands for Tazpkg.
38 post_install()
39 {
40 echo -n "Processing post-install commands..."
42 # Create a /etc/xml/catalog file
43 if [ ! -d $1/etc/xml ]; then install -v -m755 -d $1/etc/xml; fi &&
44 if [ ! -f $1/etc/xml/catalog ]; then
45 xmlcatalog --noout --create $1/etc/xml/catalog
46 fi &&
48 xmlcatalog --noout --add "rewriteSystem" \
49 "http://docbook.sourceforge.net/release/xsl-ns/$VERSION" \
50 "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \
51 $1/etc/xml/catalog &&
53 xmlcatalog --noout --add "rewriteURI" \
54 "http://docbook.sourceforge.net/release/xsl-ns/$VERSION" \
55 "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \
56 $1/etc/xml/catalog &&
58 xmlcatalog --noout --add "rewriteSystem" \
59 "http://docbook.sourceforge.net/release/xsl-ns/current" \
60 "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \
61 $1/etc/xml/catalog &&
63 xmlcatalog --noout --add "rewriteURI" \
64 "http://docbook.sourceforge.net/release/xsl-ns/current" \
65 "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \
66 $1/etc/xml/catalog
67 status
68 }