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

Up zstd (1.5.0)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jun 08 09:29:15 2021 +0000 (2021-06-08)
parents 60a578ea2fce
children bfabe25c21ff
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://github.com/docbook/wiki/wiki/"
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 cd $src
20 pkgroot=$fs/usr/share/xml/docbook/stylesheet/$PACKAGE
21 install -dm755 $pkgroot/common
22 install -dm755 $pkgroot/params
24 for fn in xml xsl dtd ent
25 do
26 install -m644 common/*.${fn} $pkgroot/common/
27 done
29 for fn in fo highlighting html roundtrip
30 do
31 install -dm755 ${pkgroot}/${fn}
32 install -m644 ${fn}/*.xml ${pkgroot}/${fn}/
33 install -m644 ${fn}/*.xsl ${pkgroot}/${fn}/
34 done
36 for fn in eclipse htmlhelp javahelp lib manpages profiling template website xhtml xhtml-1_1
37 do
38 install -dm755 ${pkgroot}/${fn}
39 install -m644 ${fn}/*.xsl ${pkgroot}/${fn}/
40 done
41 }
43 # Pre and post install commands for Tazpkg.
44 post_install()
45 {
46 if [ "$1" ]
47 then
48 mv -f "$1/etc/resolv.conf" "$1/etc/recolv.conf.$$" 2>/dev/null
49 cp /etc/resolv.conf "$1/etc/resolv.conf"
50 fi
52 # Create a /etc/xml/catalog file
53 if [ ! -d "$1/etc/xml" ]
54 then
55 install -v -m755 -d "$1/etc/xml"
56 fi &&
57 if [ ! -f "$1/etc/xml/catalog" ]
58 then
59 chroot "$1/" xmlcatalog --noout --create /etc/xml/catalog
60 fi &&
62 chroot "$1/" xmlcatalog --noout --add "rewriteSystem" \
63 "http://docbook.sourceforge.net/release/xsl-ns/$VERSION" \
64 "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \
65 /etc/xml/catalog &&
67 chroot "$1/" xmlcatalog --noout --add "rewriteURI" \
68 "http://docbook.sourceforge.net/release/xsl-ns/$VERSION" \
69 "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \
70 /etc/xml/catalog &&
72 chroot "$1/" xmlcatalog --noout --add "rewriteSystem" \
73 "http://docbook.sourceforge.net/release/xsl-ns/current" \
74 "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \
75 /etc/xml/catalog &&
77 chroot "$1/" xmlcatalog --noout --add "rewriteURI" \
78 "http://docbook.sourceforge.net/release/xsl-ns/current" \
79 "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \
80 /etc/xml/catalog
82 if [ "$1" ]
83 then
84 mv -f "$1/etc/resolv.conf.$$" "$1/etc/recolv.conf" 2>/dev/null
85 fi
86 }