wok-6.x view docbook-xsl-ns/receipt @ rev 21142

code2: update web_site
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Mar 27 10:04:30 2019 +0100 (2019-03-27)
parents de9df694c711
children e3178fd2753b
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://docbook.sourceforge.net/"
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 if [ "$1" ]; then
43 mv -f "$1/etc/resolv.conf" "$1/etc/recolv.conf.$$" 2>/dev/null
44 cp /etc/resolv.conf "$1/etc/resolv.conf"
45 fi
47 # Create a /etc/xml/catalog file
48 if [ ! -d "$1/etc/xml" ]; then install -v -m755 -d "$1/etc/xml"; fi &&
49 if [ ! -f "$1/etc/xml/catalog" ]; then
50 chroot "$1/" xmlcatalog --noout --create /etc/xml/catalog
51 fi &&
53 chroot "$1/" xmlcatalog --noout --add "rewriteSystem" \
54 "http://docbook.sourceforge.net/release/xsl-ns/$VERSION" \
55 "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \
56 /etc/xml/catalog &&
58 chroot "$1/" xmlcatalog --noout --add "rewriteURI" \
59 "http://docbook.sourceforge.net/release/xsl-ns/$VERSION" \
60 "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \
61 /etc/xml/catalog &&
63 chroot "$1/" xmlcatalog --noout --add "rewriteSystem" \
64 "http://docbook.sourceforge.net/release/xsl-ns/current" \
65 "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \
66 /etc/xml/catalog &&
68 chroot "$1/" xmlcatalog --noout --add "rewriteURI" \
69 "http://docbook.sourceforge.net/release/xsl-ns/current" \
70 "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \
71 /etc/xml/catalog
73 if [ "$1" ]; then
74 mv -f "$1/etc/resolv.conf.$$" "$1/etc/recolv.conf" 2>/dev/null
75 fi
76 }