wok view docbook-xsl/receipt @ rev 25003
updated nspr and nspr-dev (4.25 -> 4.33)
author | Hans-G?nter Theisgen |
---|---|
date | Mon May 16 14:53:05 2022 +0100 (2022-05-16) |
parents | 32b5f4e7ff37 |
children | fe1b5660fdd1 |
line source
1 # SliTaz package receipt.
3 PACKAGE="docbook-xsl"
4 VERSION="1.79.2"
5 CATEGORY="development"
6 SHORT_DESC="DocBook XSL 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://github.com/docbook/xslt10-stylesheets/releases/download/release/$VERSION/$TARBALL"
14 DEPENDS="docbook-xml libxml2-tools libxslt"
16 current_version()
17 {
18 wget -O - ${WGET_URL%/down*} 2>/dev/null | \
19 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
20 }
22 # Rules to gen a SliTaz package suitable for Tazpkg.
23 genpkg_rules()
24 {
25 cd $src # do not remove
26 pkgroot=$fs/usr/share/xml/docbook/stylesheet/$PACKAGE
27 install -dm755 $pkgroot/common
28 install -dm755 $pkgroot/params
29 install -m644 VERSION.xsl $pkgroot
31 for fn in xml xsl dtd ent
32 do
33 install -m644 common/*.${fn} $pkgroot/common/
34 done
36 for fn in fo highlighting html roundtrip
37 do
38 install -dm755 ${pkgroot}/${fn}
39 install -m644 ${fn}/*.xml ${pkgroot}/${fn}/
40 install -m644 ${fn}/*.xsl ${pkgroot}/${fn}/
41 done
43 for fn in eclipse htmlhelp javahelp lib manpages profiling template website xhtml xhtml-1_1
44 do
45 install -dm755 ${pkgroot}/${fn}
46 install -m644 ${fn}/*.xsl ${pkgroot}/${fn}/
47 done
48 }
50 # Pre and post install commands for Tazpkg.
51 post_install()
52 {
53 if [ -n "$1" ]
54 then
55 mv -f "$1/etc/resolv.conf" "$1/etc/recolv.conf.$$" 2>/dev/null
56 cp /etc/resolv.conf "$1/etc/resolv.conf"
57 fi
59 # Create a /etc/xml/catalog file
60 if [ ! -d "$1/etc/xml" ]
61 then
62 install -v -m755 -d "$1/etc/xml"
63 fi &&
64 if [ ! -f "$1/etc/xml/catalog" ]
65 then
66 chroot "$1/" xmlcatalog --noout --create /etc/xml/catalog
67 fi &&
69 chroot "$1/" xmlcatalog --noout --add "rewriteSystem" \
70 "http://docbook.sourceforge.net/release/xsl/$VERSION" \
71 "/usr/share/xml/docbook/stylesheet/$PACKAGE" \
72 /etc/xml/catalog &&
74 chroot "$1/" xmlcatalog --noout --add "rewriteURI" \
75 "http://docbook.sourceforge.net/release/xsl/$VERSION" \
76 "/usr/share/xml/docbook/stylesheet/$PACKAGE" \
77 /etc/xml/catalog &&
79 chroot "$1/" xmlcatalog --noout --add "rewriteSystem" \
80 "http://docbook.sourceforge.net/release/xsl/current" \
81 "/usr/share/xml/docbook/stylesheet/$PACKAGE" \
82 /etc/xml/catalog &&
84 chroot "$1/" xmlcatalog --noout --add "rewriteURI" \
85 "http://docbook.sourceforge.net/release/xsl/current" \
86 "/usr/share/xml/docbook/stylesheet/$PACKAGE" \
87 /etc/xml/catalog
89 # link nwalsh dir
90 cd "$1/usr/share/xml/docbook/stylesheet"
91 ln -s $PACKAGE nwalsh
93 if [ -n "$1" ]
94 then
95 mv -f "$1/etc/resolv.conf.$$" "$1/etc/recolv.conf" 2> /dev/null
96 fi
98 :
99 }