wok-next view docbook-xsl/receipt @ rev 20406

Continue: json-c, json-glib, keyutils, libarchive, libassuan, libatasmart, libatomic_ops, libblockdev, libbytesize, libcroco, libdaemon, libesmtp, libffi, libgcrypt, libgpg-error, libgsf, libgudev, libgusb
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Dec 08 02:55:48 2017 +0200 (2017-12-08)
parents 52fc64fb8fee
children 0e7893ac206d
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/"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="$SF_MIRROR/docbook/$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; do
26 install -m644 common/*.${fn} $pkgroot/common/
27 done
29 for fn in fo highlighting html roundtrip; do
30 install -dm755 ${pkgroot}/${fn}
31 install -m644 ${fn}/*.xml ${pkgroot}/${fn}/
32 install -m644 ${fn}/*.xsl ${pkgroot}/${fn}/
33 done
35 for fn in eclipse htmlhelp javahelp lib manpages profiling template website xhtml xhtml-1_1; do
36 install -dm755 ${pkgroot}/${fn}
37 install -m644 ${fn}/*.xsl ${pkgroot}/${fn}/
38 done
39 }
41 # Pre and post install commands for Tazpkg.
42 post_install()
43 {
44 if [ -n "$1" ]; then
45 mv -f "$1/etc/resolv.conf" "$1/etc/recolv.conf.$$" 2>/dev/null
46 cp /etc/resolv.conf "$1/etc/resolv.conf"
47 fi
49 U="http://docbook.sourceforge.net/release/xsl"
50 F="/usr/share/xml/docbook/stylesheet/$PACKAGE"
52 # Create a /etc/xml/catalog file
53 if [ ! -d "$1/etc/xml" ]; then install -v -m755 -d "$1/etc/xml"; fi &&
54 if [ ! -f "$1/etc/xml/catalog" ]; then
55 chroot "$1/" xmlcatalog --noout --create /etc/xml/catalog
56 fi &&
58 chroot "$1/" xmlcatalog --noout --add "rewriteSystem" "$U/$VERSION" \
59 "$F" /etc/xml/catalog &&
61 chroot "$1/" xmlcatalog --noout --add "rewriteURI" "$U/$VERSION" \
62 "$F" /etc/xml/catalog &&
64 chroot "$1/" xmlcatalog --noout --add "rewriteSystem" "$U/current" \
65 "$F" /etc/xml/catalog &&
67 chroot "$1/" xmlcatalog --noout --add "rewriteURI" "$U/current" \
68 "$F" /etc/xml/catalog
70 # link nwalsh dir
71 ln -s $PACKAGE "$1/usr/share/xml/docbook/stylesheet/nwalsh"
73 if [ -n "$1" ]; then
74 mv -f "$1/etc/resolv.conf.$$" "$1/etc/recolv.conf" 2>/dev/null
75 fi
77 :
78 }