wok-next annotate docbook-xsl/receipt @ rev 18753

Up cookutils (790)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Dec 26 20:35:21 2015 +0100 (2015-12-26)
parents 6fab3264ba87
children 52fc64fb8fee
rev   line source
slaxemulator@6984 1 # SliTaz package receipt.
slaxemulator@6984 2
slaxemulator@6984 3 PACKAGE="docbook-xsl"
slaxemulator@7624 4 VERSION="1.76.1"
slaxemulator@6984 5 CATEGORY="development"
slaxemulator@6984 6 SHORT_DESC="DocBook XSL stylesheets."
slaxemulator@6984 7 MAINTAINER="paul@slitaz.org"
pascal@15579 8 LICENSE="MIT"
slaxemulator@6984 9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
slaxemulator@7624 10 WEB_SITE="http://docbook.sourceforge.net/"
slaxemulator@6984 11 WGET_URL="$SF_MIRROR/docbook/$TARBALL"
slaxemulator@6984 12
pascal@15579 13 DEPENDS="docbook-xml libxml2-tools libxslt"
pascal@15579 14
slaxemulator@6984 15 # Rules to gen a SliTaz package suitable for Tazpkg.
slaxemulator@6984 16 genpkg_rules()
slaxemulator@6984 17 {
al@18742 18 cd $src # do not remove
slaxemulator@9557 19 pkgroot=$fs/usr/share/xml/docbook/stylesheet/$PACKAGE
slaxemulator@9557 20 install -dm755 $pkgroot/common
slaxemulator@9557 21 install -dm755 $pkgroot/params
psychomaniak@18327 22 install -m755 VERSION $pkgroot
al@18741 23
slaxemulator@9557 24 for fn in xml xsl dtd ent; do
slaxemulator@9557 25 install -m644 common/*.${fn} $pkgroot/common/
slaxemulator@9557 26 done
slaxemulator@9557 27
slaxemulator@9557 28 for fn in fo highlighting html roundtrip; do
slaxemulator@9557 29 install -dm755 ${pkgroot}/${fn}
slaxemulator@9557 30 install -m644 ${fn}/*.xml ${pkgroot}/${fn}/
slaxemulator@9557 31 install -m644 ${fn}/*.xsl ${pkgroot}/${fn}/
slaxemulator@9557 32 done
slaxemulator@9557 33
slaxemulator@9557 34 for fn in eclipse htmlhelp javahelp lib manpages profiling template website xhtml xhtml-1_1; do
slaxemulator@9557 35 install -dm755 ${pkgroot}/${fn}
slaxemulator@9557 36 install -m644 ${fn}/*.xsl ${pkgroot}/${fn}/
slaxemulator@9557 37 done
slaxemulator@6984 38 }
slaxemulator@6984 39
slaxemulator@6984 40 # Pre and post install commands for Tazpkg.
slaxemulator@6984 41 post_install()
slaxemulator@6984 42 {
al@18741 43 if [ -n "$1" ]; then
al@18741 44 mv -f "$1/etc/resolv.conf" "$1/etc/recolv.conf.$$" 2>/dev/null
pascal@18730 45 cp /etc/resolv.conf "$1/etc/resolv.conf"
pascal@18730 46 fi
slaxemulator@6984 47
slaxemulator@6984 48 # Create a /etc/xml/catalog file
pascal@18730 49 if [ ! -d "$1/etc/xml" ]; then install -v -m755 -d "$1/etc/xml"; fi &&
pascal@18730 50 if [ ! -f "$1/etc/xml/catalog" ]; then
al@18741 51 chroot "$1/" xmlcatalog --noout --create /etc/xml/catalog
slaxemulator@6984 52 fi &&
slaxemulator@6984 53
pascal@18730 54 chroot "$1/" xmlcatalog --noout --add "rewriteSystem" \
slaxemulator@9557 55 "http://docbook.sourceforge.net/release/xsl/$VERSION" \
slaxemulator@6984 56 "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \
pascal@18730 57 /etc/xml/catalog &&
slaxemulator@6984 58
pascal@18730 59 chroot "$1/" xmlcatalog --noout --add "rewriteURI" \
slaxemulator@9557 60 "http://docbook.sourceforge.net/release/xsl/$VERSION" \
slaxemulator@6984 61 "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \
pascal@18730 62 /etc/xml/catalog &&
slaxemulator@6984 63
pascal@18730 64 chroot "$1/" xmlcatalog --noout --add "rewriteSystem" \
slaxemulator@6984 65 "http://docbook.sourceforge.net/release/xsl/current" \
slaxemulator@6984 66 "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \
pascal@18730 67 /etc/xml/catalog &&
slaxemulator@6984 68
pascal@18730 69 chroot "$1/" xmlcatalog --noout --add "rewriteURI" \
slaxemulator@6984 70 "http://docbook.sourceforge.net/release/xsl/current" \
slaxemulator@6984 71 "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \
pascal@18730 72 /etc/xml/catalog
al@18741 73
slaxemulator@6984 74 # link nwalsh dir
pascal@18730 75 cd "$1/usr/share/xml/docbook/stylesheet"
al@18741 76 ln -s $PACKAGE nwalsh
al@18741 77
al@18741 78 if [ -n "$1" ]; then
pascal@18730 79 mv -f "$1/etc/resolv.conf.$$" "$1/etc/recolv.conf" 2> /dev/null
pascal@18730 80 fi
al@18741 81
al@18741 82 :
slaxemulator@6984 83 }