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

Quote root dir in post_install
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Dec 20 15:13:45 2015 +0100 (2015-12-20)
parents eb8067417980
children d6ca18366f41
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..."
43 if [ "$1" ]; then
44 mv -f "$1/etc/resolv.conf" "$1/etc/recolv.conf.$$" 2> /dev/null
45 cp /etc/resolv.conf "$1/etc/resolv.conf"
46 fi
48 # Create a /etc/xml/catalog file
49 if [ ! -d "$1/etc/xml" ]; then install -v -m755 -d "$1/etc/xml"; fi &&
50 if [ ! -f "$1/etc/xml/catalog" ]; then
51 chroot "$1/" xmlcatalog --noout --create /etc/xml/catalog
52 fi &&
54 chroot "$1/" xmlcatalog --noout --add "rewriteSystem" \
55 "http://docbook.sourceforge.net/release/xsl-ns/$VERSION" \
56 "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \
57 /etc/xml/catalog &&
59 chroot "$1/" xmlcatalog --noout --add "rewriteURI" \
60 "http://docbook.sourceforge.net/release/xsl-ns/$VERSION" \
61 "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \
62 /etc/xml/catalog &&
64 chroot "$1/" xmlcatalog --noout --add "rewriteSystem" \
65 "http://docbook.sourceforge.net/release/xsl-ns/current" \
66 "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \
67 /etc/xml/catalog &&
69 chroot "$1/" xmlcatalog --noout --add "rewriteURI" \
70 "http://docbook.sourceforge.net/release/xsl-ns/current" \
71 "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \
72 /etc/xml/catalog
73 status
74 if [ "$1" ]; then
75 mv -f "$1/etc/resolv.conf.$$" "$1/etc/recolv.conf" 2> /dev/null
76 fi
77 }