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

Micro-updates
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon Sep 10 00:52:53 2018 +0300 (2018-09-10)
parents 0e7893ac206d
children c2031fd4a3f3
line source
1 # SliTaz package receipt v2.
3 PACKAGE="docbook-xsl"
4 VERSION="1.79.2"
5 CATEGORY="development"
6 SHORT_DESC="DocBook XSL stylesheets"
7 MAINTAINER="paul@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="https://github.com/docbook/xslt10-stylesheets"
10 LFS="http://www.linuxfromscratch.org/blfs/view/svn/pst/docbook-xsl.html"
12 TARBALL="$PACKAGE-$VERSION.tar.bz2"
13 WGET_URL="https://github.com/docbook/xslt10-stylesheets/releases/download/release%2F$VERSION/$TARBALL"
15 compile_rules() {
16 mkdir -p $install/usr/share/xml/docbook/stylesheet/docbook-xsl/
18 cp -R \
19 VERSION assembly common eclipse epub epub3 extensions fo highlighting \
20 html htmlhelp images javahelp lib manpages params profiling roundtrip \
21 slides template tests tools webhelp website xhtml xhtml-1_1 xhtml5 \
22 $install/usr/share/xml/docbook/stylesheet/docbook-xsl/ &&
24 ln -s VERSION $install/usr/share/xml/docbook/stylesheet/docbook-xsl/VERSION.xsl &&
26 cook_pick_docs README RELEASE-NOTES* NEWS*
27 }
29 genpkg_rules() {
30 copy @std
31 DEPENDS="docbook-xml libxml2-tools libxslt"
32 }
34 post_install() {
35 if [ -n "$1" ]; then
36 mv -f "$1/etc/resolv.conf" "$1/etc/recolv.conf.$$" 2>/dev/null
37 cp /etc/resolv.conf "$1/etc/resolv.conf"
38 fi
40 U="http://docbook.sourceforge.net/release/xsl"
41 F="/usr/share/xml/docbook/stylesheet/docbook-xsl"
42 C="/etc/xml/catalog"
44 # Create a /etc/xml/catalog file
45 mkdir -p "$1/etc/xml"
46 if [ ! -f "$1/etc/xml/catalog" ]; then
47 chroot "$1/" xmlcatalog --noout --create "$C"
48 fi &&
50 chroot "$1/" xmlcatalog --noout --add rewriteSystem "$U/$VERSION" "$F" $C &&
51 chroot "$1/" xmlcatalog --noout --add rewriteURI "$U/$VERSION" "$F" $C &&
52 chroot "$1/" xmlcatalog --noout --add rewriteSystem "$U/current" "$F" $C &&
53 chroot "$1/" xmlcatalog --noout --add rewriteURI "$U/current" "$F" $C
55 # # link nwalsh dir
56 # ln -sf docbook-xsl "$1/usr/share/xml/docbook/stylesheet/nwalsh"
58 if [ -n "$1" ]; then
59 mv -f "$1/etc/resolv.conf.$$" "$1/etc/recolv.conf" 2>/dev/null
60 fi
62 :
63 }