wok view docbook-xsl/receipt @ rev 23066
remove nagvis-flex
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Mar 09 18:55:03 2020 +0100 (2020-03-09) |
parents | 52fc64fb8fee |
children | 5ea0ce1cecc0 |
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 # Rules to gen a SliTaz package suitable for Tazpkg.
17 genpkg_rules()
18 {
19 cd $src # do not remove
20 pkgroot=$fs/usr/share/xml/docbook/stylesheet/$PACKAGE
21 install -dm755 $pkgroot/common
22 install -dm755 $pkgroot/params
23 install -m644 VERSION.xsl $pkgroot
25 for fn in xml xsl dtd ent
26 do
27 install -m644 common/*.${fn} $pkgroot/common/
28 done
30 for fn in fo highlighting html roundtrip
31 do
32 install -dm755 ${pkgroot}/${fn}
33 install -m644 ${fn}/*.xml ${pkgroot}/${fn}/
34 install -m644 ${fn}/*.xsl ${pkgroot}/${fn}/
35 done
37 for fn in eclipse htmlhelp javahelp lib manpages profiling template website xhtml xhtml-1_1
38 do
39 install -dm755 ${pkgroot}/${fn}
40 install -m644 ${fn}/*.xsl ${pkgroot}/${fn}/
41 done
42 }
44 # Pre and post install commands for Tazpkg.
45 post_install()
46 {
47 if [ -n "$1" ]
48 then
49 mv -f "$1/etc/resolv.conf" "$1/etc/recolv.conf.$$" 2>/dev/null
50 cp /etc/resolv.conf "$1/etc/resolv.conf"
51 fi
53 # Create a /etc/xml/catalog file
54 if [ ! -d "$1/etc/xml" ]
55 then
56 install -v -m755 -d "$1/etc/xml"
57 fi &&
58 if [ ! -f "$1/etc/xml/catalog" ]
59 then
60 chroot "$1/" xmlcatalog --noout --create /etc/xml/catalog
61 fi &&
63 chroot "$1/" xmlcatalog --noout --add "rewriteSystem" \
64 "http://docbook.sourceforge.net/release/xsl/$VERSION" \
65 "/usr/share/xml/docbook/stylesheet/$PACKAGE" \
66 /etc/xml/catalog &&
68 chroot "$1/" xmlcatalog --noout --add "rewriteURI" \
69 "http://docbook.sourceforge.net/release/xsl/$VERSION" \
70 "/usr/share/xml/docbook/stylesheet/$PACKAGE" \
71 /etc/xml/catalog &&
73 chroot "$1/" xmlcatalog --noout --add "rewriteSystem" \
74 "http://docbook.sourceforge.net/release/xsl/current" \
75 "/usr/share/xml/docbook/stylesheet/$PACKAGE" \
76 /etc/xml/catalog &&
78 chroot "$1/" xmlcatalog --noout --add "rewriteURI" \
79 "http://docbook.sourceforge.net/release/xsl/current" \
80 "/usr/share/xml/docbook/stylesheet/$PACKAGE" \
81 /etc/xml/catalog
83 # link nwalsh dir
84 cd "$1/usr/share/xml/docbook/stylesheet"
85 ln -s $PACKAGE nwalsh
87 if [ -n "$1" ]
88 then
89 mv -f "$1/etc/resolv.conf.$$" "$1/etc/recolv.conf" 2> /dev/null
90 fi
92 :
93 }