wok-current view docbook-xsl-ns/receipt @ rev 22652

updated docbook-xsl-ns (1.76.1 -> 1.79.1)
author Hans-G?nter Theisgen
date Tue Jan 14 14:54:26 2020 +0100 (2020-01-14)
parents 6e8b1bcb30e2
children 60a578ea2fce
line source
1 # SliTaz package receipt.
3 PACKAGE="docbook-xsl-ns"
4 VERSION="1.79.1"
5 CATEGORY="development"
6 SHORT_DESC="DocBook XSL (namespaced) stylesheets."
7 MAINTAINER="paul@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="https://docbook.sourceforge.net/"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="https://sourceforge.net/projects/docbook/files/$PACKAGE/$VERSION/$TARBALL"
14 DEPENDS="libxml2-tools libxslt"
16 # Rules to gen a SliTaz package suitable for Tazpkg.
17 genpkg_rules()
18 {
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
24 do
25 install -m644 common/*.${fn} $pkgroot/common/
26 done
28 for fn in fo highlighting html roundtrip
29 do
30 install -dm755 ${pkgroot}/${fn}
31 install -m644 ${fn}/*.xml ${pkgroot}/${fn}/
32 install -m644 ${fn}/*.xsl ${pkgroot}/${fn}/
33 done
35 for fn in eclipse htmlhelp javahelp lib manpages profiling template website xhtml xhtml-1_1
36 do
37 install -dm755 ${pkgroot}/${fn}
38 install -m644 ${fn}/*.xsl ${pkgroot}/${fn}/
39 done
40 }
42 # Pre and post install commands for Tazpkg.
43 post_install()
44 {
45 if [ "$1" ]
46 then
47 mv -f "$1/etc/resolv.conf" "$1/etc/recolv.conf.$$" 2>/dev/null
48 cp /etc/resolv.conf "$1/etc/resolv.conf"
49 fi
51 # Create a /etc/xml/catalog file
52 if [ ! -d "$1/etc/xml" ]
53 then
54 install -v -m755 -d "$1/etc/xml"
55 fi &&
56 if [ ! -f "$1/etc/xml/catalog" ]
57 then
58 chroot "$1/" xmlcatalog --noout --create /etc/xml/catalog
59 fi &&
61 chroot "$1/" xmlcatalog --noout --add "rewriteSystem" \
62 "http://docbook.sourceforge.net/release/xsl-ns/$VERSION" \
63 "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \
64 /etc/xml/catalog &&
66 chroot "$1/" xmlcatalog --noout --add "rewriteURI" \
67 "http://docbook.sourceforge.net/release/xsl-ns/$VERSION" \
68 "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \
69 /etc/xml/catalog &&
71 chroot "$1/" xmlcatalog --noout --add "rewriteSystem" \
72 "http://docbook.sourceforge.net/release/xsl-ns/current" \
73 "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \
74 /etc/xml/catalog &&
76 chroot "$1/" xmlcatalog --noout --add "rewriteURI" \
77 "http://docbook.sourceforge.net/release/xsl-ns/current" \
78 "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \
79 /etc/xml/catalog
81 if [ "$1" ]
82 then
83 mv -f "$1/etc/resolv.conf.$$" "$1/etc/recolv.conf" 2>/dev/null
84 fi
85 }