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

pyaudio -> python-pyaudio
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Aug 23 07:07:52 2018 +0300 (2018-08-23)
parents 35a20e111081
children d3730d754d47
line source
1 # SliTaz package receipt v2.
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/"
10 LFS="http://www.linuxfromscratch.org/blfs/view/stable/pst/docbook-xsl.html"
12 TARBALL="$PACKAGE-$VERSION.tar.bz2"
13 WGET_URL="$SF_MIRROR/docbook/$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 }