wok-next view docbook-xsl-ns/receipt @ rev 21330
updated libraw again (0.18.7 -> 0.19.5)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Dec 12 16:15:51 2019 +0100 (2019-12-12) |
parents | a3c581bf52b8 |
children |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="docbook-xsl-ns"
4 VERSION="1.79.1"
5 CATEGORY="development"
6 SHORT_DESC="DocBook XSL-NS stylesheets"
7 MAINTAINER="paul@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="http://docbook.sourceforge.net/"
10 HOST_ARCH="any"
12 TARBALL="$PACKAGE-$VERSION.tar.bz2"
13 WGET_URL="$SF_MIRROR/docbook/$TARBALL"
15 compile_rules() {
16 dest="$install/usr/share/xml/docbook/stylesheet/docbook-xsl-ns"
17 mkdir -p $dest
19 cp VERSION VERSION.xsl $dest
21 for i in assembly common eclipse epub epub3 fo highlighting html htmlhelp \
22 javahelp lib manpages params profiling roundtrip template website \
23 xhtml xhtml-1_1 xhtml5; do
24 mkdir -p $dest/$i
25 cp $i/*.xml $i/*.xsl $i/*.dtd $i/*.ent $dest/$i/ 2>/dev/null
26 done
27 find $install -type f -name build.xml -delete
29 mkdir -p $install/etc/xml/
31 cook_pick_docs README RELEASE-NOTES* NEWS*
32 }
34 genpkg_rules() {
35 copy @std
36 DEPENDS="libxml2-tools libxslt"
37 }
39 post_install() {
40 local U="http://docbook.sourceforge.net/release/xsl-ns"
41 local F="file:///usr/share/xml/docbook/stylesheet/docbook-xsl-ns/catalog.xml"
42 local C="/etc/xml/catalog"
44 # Create a /etc/xml/catalog if it absent
45 mkdir -p "$1/etc/xml/"
46 [ -s "$1/etc/xml/catalog" ] || chroot "$1/" xmlcatalog --noout --create "$C"
48 chroot "$1/" xmlcatalog --noout --add "rewriteSystem" "$U/$VERSION" "$F" "$C"
49 chroot "$1/" xmlcatalog --noout --add "rewriteURI" "$U/$VERSION" "$F" "$C"
50 chroot "$1/" xmlcatalog --noout --add "rewriteSystem" "$U/current" "$F" "$C"
51 chroot "$1/" xmlcatalog --noout --add "rewriteURI" "$U/current" "$F" "$C"
52 }