wok-6.x view docbook-xsl/receipt @ rev 19554
upx: add doc links
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Dec 11 15:06:50 2016 +0100 (2016-12-11) |
parents | 6526589b64f8 |
children | 32b5f4e7ff37 |
line source
1 # SliTaz package receipt.
3 PACKAGE="docbook-xsl"
4 VERSION="1.79.1"
5 CATEGORY="development"
6 SHORT_DESC="DocBook XSL stylesheets."
7 MAINTAINER="paul@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="http://docbook.sourceforge.net/"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 WGET_URL="$SF_MIRROR/docbook/$TARBALL"
13 DEPENDS="docbook-xml libxml2-tools libxslt"
15 # Rules to gen a SliTaz package suitable for Tazpkg.
16 genpkg_rules()
17 {
18 cd $src # do not remove
19 pkgroot=$fs/usr/share/xml/docbook/stylesheet/$PACKAGE
20 install -dm755 $pkgroot/common
21 install -dm755 $pkgroot/params
22 install -m644 VERSION.xsl $pkgroot
24 for fn in xml xsl dtd ent; do
25 install -m644 common/*.${fn} $pkgroot/common/
26 done
28 for fn in fo highlighting html roundtrip; do
29 install -dm755 ${pkgroot}/${fn}
30 install -m644 ${fn}/*.xml ${pkgroot}/${fn}/
31 install -m644 ${fn}/*.xsl ${pkgroot}/${fn}/
32 done
34 for fn in eclipse htmlhelp javahelp lib manpages profiling template website xhtml xhtml-1_1; do
35 install -dm755 ${pkgroot}/${fn}
36 install -m644 ${fn}/*.xsl ${pkgroot}/${fn}/
37 done
38 }
40 # Pre and post install commands for Tazpkg.
41 post_install()
42 {
43 if [ -n "$1" ]; then
44 mv -f "$1/etc/resolv.conf" "$1/etc/recolv.conf.$$" 2>/dev/null
45 cp /etc/resolv.conf "$1/etc/resolv.conf"
46 fi
48 # Create a /etc/xml/catalog file
49 if [ ! -d "$1/etc/xml" ]; then install -v -m755 -d "$1/etc/xml"; fi &&
50 if [ ! -f "$1/etc/xml/catalog" ]; then
51 chroot "$1/" xmlcatalog --noout --create /etc/xml/catalog
52 fi &&
54 chroot "$1/" xmlcatalog --noout --add "rewriteSystem" \
55 "http://docbook.sourceforge.net/release/xsl/$VERSION" \
56 "/usr/share/xml/docbook/stylesheet/$PACKAGE" \
57 /etc/xml/catalog &&
59 chroot "$1/" xmlcatalog --noout --add "rewriteURI" \
60 "http://docbook.sourceforge.net/release/xsl/$VERSION" \
61 "/usr/share/xml/docbook/stylesheet/$PACKAGE" \
62 /etc/xml/catalog &&
64 chroot "$1/" xmlcatalog --noout --add "rewriteSystem" \
65 "http://docbook.sourceforge.net/release/xsl/current" \
66 "/usr/share/xml/docbook/stylesheet/$PACKAGE" \
67 /etc/xml/catalog &&
69 chroot "$1/" xmlcatalog --noout --add "rewriteURI" \
70 "http://docbook.sourceforge.net/release/xsl/current" \
71 "/usr/share/xml/docbook/stylesheet/$PACKAGE" \
72 /etc/xml/catalog
74 # link nwalsh dir
75 cd "$1/usr/share/xml/docbook/stylesheet"
76 ln -s $PACKAGE nwalsh
78 if [ -n "$1" ]; then
79 mv -f "$1/etc/resolv.conf.$$" "$1/etc/recolv.conf" 2> /dev/null
80 fi
82 :
83 }