wok view docbook-xsl/receipt @ rev 25695

sc-im: replaced released version by development version
author Hans-G?nter Theisgen
date Fri Apr 26 08:13:41 2024 +0100 (5 weeks ago)
parents 5ea0ce1cecc0
children
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 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - ${WGET_URL%/down*} 2>/dev/null | \
20 sed '/tag\//!d;s|.*tag/v*||;s|".*||;s|snapshot%2F||;q'
21 }
23 # Rules to gen a SliTaz package suitable for Tazpkg.
24 genpkg_rules()
25 {
26 cd $src # do not remove
27 pkgroot=$fs/usr/share/xml/docbook/stylesheet/$PACKAGE
28 install -dm755 $pkgroot/common
29 install -dm755 $pkgroot/params
30 install -m644 VERSION.xsl $pkgroot
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 [ -n "$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/$VERSION" \
72 "/usr/share/xml/docbook/stylesheet/$PACKAGE" \
73 /etc/xml/catalog &&
75 chroot "$1/" xmlcatalog --noout --add "rewriteURI" \
76 "http://docbook.sourceforge.net/release/xsl/$VERSION" \
77 "/usr/share/xml/docbook/stylesheet/$PACKAGE" \
78 /etc/xml/catalog &&
80 chroot "$1/" xmlcatalog --noout --add "rewriteSystem" \
81 "http://docbook.sourceforge.net/release/xsl/current" \
82 "/usr/share/xml/docbook/stylesheet/$PACKAGE" \
83 /etc/xml/catalog &&
85 chroot "$1/" xmlcatalog --noout --add "rewriteURI" \
86 "http://docbook.sourceforge.net/release/xsl/current" \
87 "/usr/share/xml/docbook/stylesheet/$PACKAGE" \
88 /etc/xml/catalog
90 # link nwalsh dir
91 cd "$1/usr/share/xml/docbook/stylesheet"
92 ln -s $PACKAGE nwalsh
94 if [ -n "$1" ]
95 then
96 mv -f "$1/etc/resolv.conf.$$" "$1/etc/recolv.conf" 2> /dev/null
97 fi
99 :
100 }