wok-next view docbook-xsl-ns/receipt @ rev 20636
Fix "can't execute '/usr/bin/update-mime-database': No such file or directory"
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Apr 27 15:12:17 2018 +0300 (2018-04-27) |
parents | de9df694c711 |
children | a3c581bf52b8 |
line source
1 # SliTaz package receipt.
3 PACKAGE="docbook-xsl-ns"
4 VERSION="1.79.1"
5 CATEGORY="development"
6 SHORT_DESC="DocBook XSL (namespaced) stylesheets."
7 MAINTAINER="paul@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="http://wiki.docbook.org/topic/DocBookXslStylesheets"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="$SF_MIRROR/docbook/$TARBALL"
14 DEPENDS="libxml2-tools libxslt"
16 # Rules to gen a SliTaz package suitable for Tazpkg.
17 genpkg_rules()
18 {
19 cd $src
20 pkgroot=$fs/usr/share/xml/docbook/stylesheet/$PACKAGE
21 install -dm755 $pkgroot/common
22 install -dm755 $pkgroot/params
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 [ "$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-ns/$VERSION" \
56 "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \
57 /etc/xml/catalog &&
59 chroot "$1/" xmlcatalog --noout --add "rewriteURI" \
60 "http://docbook.sourceforge.net/release/xsl-ns/$VERSION" \
61 "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \
62 /etc/xml/catalog &&
64 chroot "$1/" xmlcatalog --noout --add "rewriteSystem" \
65 "http://docbook.sourceforge.net/release/xsl-ns/current" \
66 "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \
67 /etc/xml/catalog &&
69 chroot "$1/" xmlcatalog --noout --add "rewriteURI" \
70 "http://docbook.sourceforge.net/release/xsl-ns/current" \
71 "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \
72 /etc/xml/catalog
74 if [ "$1" ]; then
75 mv -f "$1/etc/resolv.conf.$$" "$1/etc/recolv.conf" 2>/dev/null
76 fi
77 }