wok view docbook-xsl/receipt @ rev 10082

Up: qt4 to 4.7.3. This adds sercurity fixes in this release. Add libQtPlugins so you don't need to install Qt4-dev to run mixxx.
author Christopher Rogers <slaxemulator@gmail.com>
date Fri May 20 06:22:56 2011 +0000 (2011-05-20)
parents 8e7c178e1fc8
children eb8067417980
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 DEPENDS="docbook-xml libxml2-tools libxslt"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://docbook.sourceforge.net/"
11 WGET_URL="$SF_MIRROR/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/$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/$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/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/current" \
65 "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \
66 $1/etc/xml/catalog
68 # link nwalsh dir
69 cd $1/usr/share/xml/docbook/stylesheet
70 ln -s $PACKAGE nwalsh
71 status
72 }