wok-current view docbook-xsl/receipt @ rev 18741
Finish to remove redundant messages 'Processing * commands...'; KISS get-msttcorefonts; add get-msttcorefonts2
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Dec 25 15:23:46 2015 +0200 (2015-12-25) |
parents | 9e01bc6321ea |
children | 6526589b64f8 |
line source
1 # SliTaz package receipt.
3 PACKAGE="docbook-xsl"
4 VERSION="1.76.1"
5 CATEGORY="development"
6 SHORT_DESC="DocBook XSL stylesheets."
7 MAINTAINER="paul@slitaz.org"
8 LICENSE="MIT"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://docbook.sourceforge.net/"
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 pkgroot=$fs/usr/share/xml/docbook/stylesheet/$PACKAGE
19 install -dm755 $pkgroot/common
20 install -dm755 $pkgroot/params
21 install -m755 VERSION $pkgroot
23 for fn in xml xsl dtd ent; do
24 install -m644 common/*.${fn} $pkgroot/common/
25 done
27 for fn in fo highlighting html roundtrip; do
28 install -dm755 ${pkgroot}/${fn}
29 install -m644 ${fn}/*.xml ${pkgroot}/${fn}/
30 install -m644 ${fn}/*.xsl ${pkgroot}/${fn}/
31 done
33 for fn in eclipse htmlhelp javahelp lib manpages profiling template website xhtml xhtml-1_1; do
34 install -dm755 ${pkgroot}/${fn}
35 install -m644 ${fn}/*.xsl ${pkgroot}/${fn}/
36 done
37 }
39 # Pre and post install commands for Tazpkg.
40 post_install()
41 {
42 if [ -n "$1" ]; then
43 mv -f "$1/etc/resolv.conf" "$1/etc/recolv.conf.$$" 2>/dev/null
44 cp /etc/resolv.conf "$1/etc/resolv.conf"
45 fi
47 # Create a /etc/xml/catalog file
48 if [ ! -d "$1/etc/xml" ]; then install -v -m755 -d "$1/etc/xml"; fi &&
49 if [ ! -f "$1/etc/xml/catalog" ]; then
50 chroot "$1/" xmlcatalog --noout --create /etc/xml/catalog
51 fi &&
53 chroot "$1/" xmlcatalog --noout --add "rewriteSystem" \
54 "http://docbook.sourceforge.net/release/xsl/$VERSION" \
55 "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \
56 /etc/xml/catalog &&
58 chroot "$1/" xmlcatalog --noout --add "rewriteURI" \
59 "http://docbook.sourceforge.net/release/xsl/$VERSION" \
60 "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \
61 /etc/xml/catalog &&
63 chroot "$1/" xmlcatalog --noout --add "rewriteSystem" \
64 "http://docbook.sourceforge.net/release/xsl/current" \
65 "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \
66 /etc/xml/catalog &&
68 chroot "$1/" xmlcatalog --noout --add "rewriteURI" \
69 "http://docbook.sourceforge.net/release/xsl/current" \
70 "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \
71 /etc/xml/catalog
73 # link nwalsh dir
74 cd "$1/usr/share/xml/docbook/stylesheet"
75 ln -s $PACKAGE nwalsh
77 if [ -n "$1" ]; then
78 mv -f "$1/etc/resolv.conf.$$" "$1/etc/recolv.conf" 2> /dev/null
79 fi
81 :
82 }