wok annotate docbook-xsl/receipt @ rev 24074

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Jul 08 09:18:48 2021 +0000 (2021-07-08)
parents 32b5f4e7ff37
children fe1b5660fdd1
rev   line source
slaxemulator@6984 1 # SliTaz package receipt.
slaxemulator@6984 2
slaxemulator@6984 3 PACKAGE="docbook-xsl"
Hans-G?nter@22651 4 VERSION="1.79.2"
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"
Hans-G?nter@22651 9 WEB_SITE="https://github.com/docbook/wiki/wiki/"
Hans-G?nter@22651 10
slaxemulator@6984 11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
Hans-G?nter@22651 12 WGET_URL="https://github.com/docbook/xslt10-stylesheets/releases/download/release/$VERSION/$TARBALL"
slaxemulator@6984 13
pascal@15579 14 DEPENDS="docbook-xml libxml2-tools libxslt"
pascal@15579 15
pascal@24055 16 current_version()
pascal@24055 17 {
pascal@24055 18 wget -O - ${WGET_URL%/down*} 2>/dev/null | \
pascal@24055 19 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
pascal@24055 20 }
pascal@24055 21
slaxemulator@6984 22 # Rules to gen a SliTaz package suitable for Tazpkg.
slaxemulator@6984 23 genpkg_rules()
slaxemulator@6984 24 {
al@18742 25 cd $src # do not remove
slaxemulator@9557 26 pkgroot=$fs/usr/share/xml/docbook/stylesheet/$PACKAGE
Hans-G?nter@22651 27 install -dm755 $pkgroot/common
Hans-G?nter@22651 28 install -dm755 $pkgroot/params
Hans-G?nter@22651 29 install -m644 VERSION.xsl $pkgroot
al@18741 30
Hans-G?nter@22651 31 for fn in xml xsl dtd ent
Hans-G?nter@22651 32 do
Hans-G?nter@22651 33 install -m644 common/*.${fn} $pkgroot/common/
Hans-G?nter@22651 34 done
slaxemulator@9557 35
Hans-G?nter@22651 36 for fn in fo highlighting html roundtrip
Hans-G?nter@22651 37 do
Hans-G?nter@22651 38 install -dm755 ${pkgroot}/${fn}
Hans-G?nter@22651 39 install -m644 ${fn}/*.xml ${pkgroot}/${fn}/
Hans-G?nter@22651 40 install -m644 ${fn}/*.xsl ${pkgroot}/${fn}/
Hans-G?nter@22651 41 done
slaxemulator@9557 42
Hans-G?nter@22651 43 for fn in eclipse htmlhelp javahelp lib manpages profiling template website xhtml xhtml-1_1
Hans-G?nter@22651 44 do
Hans-G?nter@22651 45 install -dm755 ${pkgroot}/${fn}
Hans-G?nter@22651 46 install -m644 ${fn}/*.xsl ${pkgroot}/${fn}/
Hans-G?nter@22651 47 done
slaxemulator@6984 48 }
slaxemulator@6984 49
slaxemulator@6984 50 # Pre and post install commands for Tazpkg.
slaxemulator@6984 51 post_install()
slaxemulator@6984 52 {
Hans-G?nter@22651 53 if [ -n "$1" ]
Hans-G?nter@22651 54 then
Hans-G?nter@22651 55 mv -f "$1/etc/resolv.conf" "$1/etc/recolv.conf.$$" 2>/dev/null
Hans-G?nter@22651 56 cp /etc/resolv.conf "$1/etc/resolv.conf"
pascal@18730 57 fi
slaxemulator@6984 58
slaxemulator@6984 59 # Create a /etc/xml/catalog file
Hans-G?nter@22651 60 if [ ! -d "$1/etc/xml" ]
Hans-G?nter@22651 61 then
Hans-G?nter@22651 62 install -v -m755 -d "$1/etc/xml"
Hans-G?nter@22651 63 fi &&
Hans-G?nter@22651 64 if [ ! -f "$1/etc/xml/catalog" ]
Hans-G?nter@22651 65 then
al@18741 66 chroot "$1/" xmlcatalog --noout --create /etc/xml/catalog
slaxemulator@6984 67 fi &&
slaxemulator@6984 68
pascal@18730 69 chroot "$1/" xmlcatalog --noout --add "rewriteSystem" \
slaxemulator@9557 70 "http://docbook.sourceforge.net/release/xsl/$VERSION" \
al@19536 71 "/usr/share/xml/docbook/stylesheet/$PACKAGE" \
pascal@18730 72 /etc/xml/catalog &&
slaxemulator@6984 73
pascal@18730 74 chroot "$1/" xmlcatalog --noout --add "rewriteURI" \
slaxemulator@9557 75 "http://docbook.sourceforge.net/release/xsl/$VERSION" \
al@19536 76 "/usr/share/xml/docbook/stylesheet/$PACKAGE" \
pascal@18730 77 /etc/xml/catalog &&
slaxemulator@6984 78
pascal@18730 79 chroot "$1/" xmlcatalog --noout --add "rewriteSystem" \
slaxemulator@6984 80 "http://docbook.sourceforge.net/release/xsl/current" \
al@19536 81 "/usr/share/xml/docbook/stylesheet/$PACKAGE" \
pascal@18730 82 /etc/xml/catalog &&
slaxemulator@6984 83
pascal@18730 84 chroot "$1/" xmlcatalog --noout --add "rewriteURI" \
slaxemulator@6984 85 "http://docbook.sourceforge.net/release/xsl/current" \
al@19536 86 "/usr/share/xml/docbook/stylesheet/$PACKAGE" \
pascal@18730 87 /etc/xml/catalog
al@18741 88
slaxemulator@6984 89 # link nwalsh dir
pascal@18730 90 cd "$1/usr/share/xml/docbook/stylesheet"
al@18741 91 ln -s $PACKAGE nwalsh
al@18741 92
Hans-G?nter@22651 93 if [ -n "$1" ]
Hans-G?nter@22651 94 then
pascal@18730 95 mv -f "$1/etc/resolv.conf.$$" "$1/etc/recolv.conf" 2> /dev/null
pascal@18730 96 fi
al@18741 97
al@18741 98 :
slaxemulator@6984 99 }