wok view docbook-xsl-ns/receipt @ rev 25229
updated python-pyst2 (0.5.0 -> 0.5.1)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Jul 13 16:59:13 2022 +0100 (2022-07-13) |
parents | 3cda55aed22c |
children | d79ed38ace18 |
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 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - https://sourceforge.net/projects/docbook/files/docbook-xsl-ns/ 2>/dev/null | \
20 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
21 sed '/scope="row/!d;s|.*/docbook-xsl-ns/||;s|/.*||;q'
22 }
24 # Rules to gen a SliTaz package suitable for Tazpkg.
25 genpkg_rules()
26 {
27 cd $src
28 pkgroot=$fs/usr/share/xml/docbook/stylesheet/$PACKAGE
29 install -dm755 $pkgroot/common
30 install -dm755 $pkgroot/params
32 for fn in xml xsl dtd ent
33 do
34 install -m644 common/*.${fn} $pkgroot/common/
35 done
37 for fn in fo highlighting html roundtrip
38 do
39 install -dm755 ${pkgroot}/${fn}
40 install -m644 ${fn}/*.xml ${pkgroot}/${fn}/
41 install -m644 ${fn}/*.xsl ${pkgroot}/${fn}/
42 done
44 for fn in eclipse htmlhelp javahelp lib manpages profiling template website xhtml xhtml-1_1
45 do
46 install -dm755 ${pkgroot}/${fn}
47 install -m644 ${fn}/*.xsl ${pkgroot}/${fn}/
48 done
49 }
51 # Pre and post install commands for Tazpkg.
52 post_install()
53 {
54 if [ "$1" ]
55 then
56 mv -f "$1/etc/resolv.conf" "$1/etc/recolv.conf.$$" 2>/dev/null
57 cp /etc/resolv.conf "$1/etc/resolv.conf"
58 fi
60 # Create a /etc/xml/catalog file
61 if [ ! -d "$1/etc/xml" ]
62 then
63 install -v -m755 -d "$1/etc/xml"
64 fi &&
65 if [ ! -f "$1/etc/xml/catalog" ]
66 then
67 chroot "$1/" xmlcatalog --noout --create /etc/xml/catalog
68 fi &&
70 chroot "$1/" xmlcatalog --noout --add "rewriteSystem" \
71 "http://docbook.sourceforge.net/release/xsl-ns/$VERSION" \
72 "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \
73 /etc/xml/catalog &&
75 chroot "$1/" xmlcatalog --noout --add "rewriteURI" \
76 "http://docbook.sourceforge.net/release/xsl-ns/$VERSION" \
77 "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \
78 /etc/xml/catalog &&
80 chroot "$1/" xmlcatalog --noout --add "rewriteSystem" \
81 "http://docbook.sourceforge.net/release/xsl-ns/current" \
82 "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \
83 /etc/xml/catalog &&
85 chroot "$1/" xmlcatalog --noout --add "rewriteURI" \
86 "http://docbook.sourceforge.net/release/xsl-ns/current" \
87 "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \
88 /etc/xml/catalog
90 if [ "$1" ]
91 then
92 mv -f "$1/etc/resolv.conf.$$" "$1/etc/recolv.conf" 2>/dev/null
93 fi
94 }