wok view docbook-xsl/receipt @ rev 18414

Add pyhn
author Paul Issott <paul@slitaz.org>
date Sun Sep 20 16:19:24 2015 +0100 (2015-09-20)
parents 365611cfc2cf
children 9e01bc6321ea
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
22 install -m755 VERSION $pkgroot
24 for fn in xml xsl dtd ent; do
25 install -m644 common/*.${fn} $pkgroot/common/
26 done
28 for fn in fo highlighting html roundtrip; do
29 install -dm755 ${pkgroot}/${fn}
30 install -m644 ${fn}/*.xml ${pkgroot}/${fn}/
31 install -m644 ${fn}/*.xsl ${pkgroot}/${fn}/
32 done
34 for fn in eclipse htmlhelp javahelp lib manpages profiling template website xhtml xhtml-1_1; do
35 install -dm755 ${pkgroot}/${fn}
36 install -m644 ${fn}/*.xsl ${pkgroot}/${fn}/
37 done
38 }
40 # Pre and post install commands for Tazpkg.
41 post_install()
42 {
43 echo -n "Processing post-install commands..."
45 # Create a /etc/xml/catalog file
46 if [ ! -d $1/etc/xml ]; then install -v -m755 -d $1/etc/xml; fi &&
47 if [ ! -f $1/etc/xml/catalog ]; then
48 xmlcatalog --noout --create $1/etc/xml/catalog
49 fi &&
51 xmlcatalog --noout --add "rewriteSystem" \
52 "http://docbook.sourceforge.net/release/xsl/$VERSION" \
53 "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \
54 $1/etc/xml/catalog &&
56 xmlcatalog --noout --add "rewriteURI" \
57 "http://docbook.sourceforge.net/release/xsl/$VERSION" \
58 "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \
59 $1/etc/xml/catalog &&
61 xmlcatalog --noout --add "rewriteSystem" \
62 "http://docbook.sourceforge.net/release/xsl/current" \
63 "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \
64 $1/etc/xml/catalog &&
66 xmlcatalog --noout --add "rewriteURI" \
67 "http://docbook.sourceforge.net/release/xsl/current" \
68 "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \
69 $1/etc/xml/catalog
71 # link nwalsh dir
72 cd $1/usr/share/xml/docbook/stylesheet
73 ln -s $PACKAGE nwalsh
74 status
75 }