wok-current view docbook-xsl-ns/receipt @ rev 18734

Remove redundant messages in {pre|post}_{install|remove}() in random packages
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon Dec 21 02:53:09 2015 +0200 (2015-12-21)
parents 9e01bc6321ea
children de9df694c711
line source
1 # SliTaz package receipt.
3 PACKAGE="docbook-xsl-ns"
4 VERSION="1.76.1"
5 CATEGORY="development"
6 SHORT_DESC="DocBook XSL (namespaced) stylesheets."
7 MAINTAINER="paul@slitaz.org"
8 LICENSE="MIT"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://wiki.docbook.org/topic/DocBookXslStylesheets"
11 WGET_URL="http://jaist.dl.sourceforge.net/sourceforge/docbook/$TARBALL"
13 DEPENDS="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
22 for fn in xml xsl dtd ent; do
23 install -m644 common/*.${fn} $pkgroot/common/
24 done
26 for fn in fo highlighting html roundtrip; do
27 install -dm755 ${pkgroot}/${fn}
28 install -m644 ${fn}/*.xml ${pkgroot}/${fn}/
29 install -m644 ${fn}/*.xsl ${pkgroot}/${fn}/
30 done
32 for fn in eclipse htmlhelp javahelp lib manpages profiling template website xhtml xhtml-1_1; do
33 install -dm755 ${pkgroot}/${fn}
34 install -m644 ${fn}/*.xsl ${pkgroot}/${fn}/
35 done
36 }
38 # Pre and post install commands for Tazpkg.
39 post_install()
40 {
41 if [ "$1" ]; then
42 mv -f "$1/etc/resolv.conf" "$1/etc/recolv.conf.$$" 2>/dev/null
43 cp /etc/resolv.conf "$1/etc/resolv.conf"
44 fi
46 # Create a /etc/xml/catalog file
47 if [ ! -d "$1/etc/xml" ]; then install -v -m755 -d "$1/etc/xml"; fi &&
48 if [ ! -f "$1/etc/xml/catalog" ]; then
49 chroot "$1/" xmlcatalog --noout --create /etc/xml/catalog
50 fi &&
52 chroot "$1/" xmlcatalog --noout --add "rewriteSystem" \
53 "http://docbook.sourceforge.net/release/xsl-ns/$VERSION" \
54 "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \
55 /etc/xml/catalog &&
57 chroot "$1/" xmlcatalog --noout --add "rewriteURI" \
58 "http://docbook.sourceforge.net/release/xsl-ns/$VERSION" \
59 "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \
60 /etc/xml/catalog &&
62 chroot "$1/" xmlcatalog --noout --add "rewriteSystem" \
63 "http://docbook.sourceforge.net/release/xsl-ns/current" \
64 "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \
65 /etc/xml/catalog &&
67 chroot "$1/" xmlcatalog --noout --add "rewriteURI" \
68 "http://docbook.sourceforge.net/release/xsl-ns/current" \
69 "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \
70 /etc/xml/catalog
72 if [ "$1" ]; then
73 mv -f "$1/etc/resolv.conf.$$" "$1/etc/recolv.conf" 2>/dev/null
74 fi
75 }