wok annotate docbook-xsl/receipt @ rev 23045
gtk-doc: update deps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Mar 05 17:20:18 2020 +0100 (2020-03-05) |
parents | 52fc64fb8fee |
children | 5ea0ce1cecc0 |
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 |
slaxemulator@6984 | 16 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@6984 | 17 genpkg_rules() |
slaxemulator@6984 | 18 { |
al@18742 | 19 cd $src # do not remove |
slaxemulator@9557 | 20 pkgroot=$fs/usr/share/xml/docbook/stylesheet/$PACKAGE |
Hans-G?nter@22651 | 21 install -dm755 $pkgroot/common |
Hans-G?nter@22651 | 22 install -dm755 $pkgroot/params |
Hans-G?nter@22651 | 23 install -m644 VERSION.xsl $pkgroot |
al@18741 | 24 |
Hans-G?nter@22651 | 25 for fn in xml xsl dtd ent |
Hans-G?nter@22651 | 26 do |
Hans-G?nter@22651 | 27 install -m644 common/*.${fn} $pkgroot/common/ |
Hans-G?nter@22651 | 28 done |
slaxemulator@9557 | 29 |
Hans-G?nter@22651 | 30 for fn in fo highlighting html roundtrip |
Hans-G?nter@22651 | 31 do |
Hans-G?nter@22651 | 32 install -dm755 ${pkgroot}/${fn} |
Hans-G?nter@22651 | 33 install -m644 ${fn}/*.xml ${pkgroot}/${fn}/ |
Hans-G?nter@22651 | 34 install -m644 ${fn}/*.xsl ${pkgroot}/${fn}/ |
Hans-G?nter@22651 | 35 done |
slaxemulator@9557 | 36 |
Hans-G?nter@22651 | 37 for fn in eclipse htmlhelp javahelp lib manpages profiling template website xhtml xhtml-1_1 |
Hans-G?nter@22651 | 38 do |
Hans-G?nter@22651 | 39 install -dm755 ${pkgroot}/${fn} |
Hans-G?nter@22651 | 40 install -m644 ${fn}/*.xsl ${pkgroot}/${fn}/ |
Hans-G?nter@22651 | 41 done |
slaxemulator@6984 | 42 } |
slaxemulator@6984 | 43 |
slaxemulator@6984 | 44 # Pre and post install commands for Tazpkg. |
slaxemulator@6984 | 45 post_install() |
slaxemulator@6984 | 46 { |
Hans-G?nter@22651 | 47 if [ -n "$1" ] |
Hans-G?nter@22651 | 48 then |
Hans-G?nter@22651 | 49 mv -f "$1/etc/resolv.conf" "$1/etc/recolv.conf.$$" 2>/dev/null |
Hans-G?nter@22651 | 50 cp /etc/resolv.conf "$1/etc/resolv.conf" |
pascal@18730 | 51 fi |
slaxemulator@6984 | 52 |
slaxemulator@6984 | 53 # Create a /etc/xml/catalog file |
Hans-G?nter@22651 | 54 if [ ! -d "$1/etc/xml" ] |
Hans-G?nter@22651 | 55 then |
Hans-G?nter@22651 | 56 install -v -m755 -d "$1/etc/xml" |
Hans-G?nter@22651 | 57 fi && |
Hans-G?nter@22651 | 58 if [ ! -f "$1/etc/xml/catalog" ] |
Hans-G?nter@22651 | 59 then |
al@18741 | 60 chroot "$1/" xmlcatalog --noout --create /etc/xml/catalog |
slaxemulator@6984 | 61 fi && |
slaxemulator@6984 | 62 |
pascal@18730 | 63 chroot "$1/" xmlcatalog --noout --add "rewriteSystem" \ |
slaxemulator@9557 | 64 "http://docbook.sourceforge.net/release/xsl/$VERSION" \ |
al@19536 | 65 "/usr/share/xml/docbook/stylesheet/$PACKAGE" \ |
pascal@18730 | 66 /etc/xml/catalog && |
slaxemulator@6984 | 67 |
pascal@18730 | 68 chroot "$1/" xmlcatalog --noout --add "rewriteURI" \ |
slaxemulator@9557 | 69 "http://docbook.sourceforge.net/release/xsl/$VERSION" \ |
al@19536 | 70 "/usr/share/xml/docbook/stylesheet/$PACKAGE" \ |
pascal@18730 | 71 /etc/xml/catalog && |
slaxemulator@6984 | 72 |
pascal@18730 | 73 chroot "$1/" xmlcatalog --noout --add "rewriteSystem" \ |
slaxemulator@6984 | 74 "http://docbook.sourceforge.net/release/xsl/current" \ |
al@19536 | 75 "/usr/share/xml/docbook/stylesheet/$PACKAGE" \ |
pascal@18730 | 76 /etc/xml/catalog && |
slaxemulator@6984 | 77 |
pascal@18730 | 78 chroot "$1/" xmlcatalog --noout --add "rewriteURI" \ |
slaxemulator@6984 | 79 "http://docbook.sourceforge.net/release/xsl/current" \ |
al@19536 | 80 "/usr/share/xml/docbook/stylesheet/$PACKAGE" \ |
pascal@18730 | 81 /etc/xml/catalog |
al@18741 | 82 |
slaxemulator@6984 | 83 # link nwalsh dir |
pascal@18730 | 84 cd "$1/usr/share/xml/docbook/stylesheet" |
al@18741 | 85 ln -s $PACKAGE nwalsh |
al@18741 | 86 |
Hans-G?nter@22651 | 87 if [ -n "$1" ] |
Hans-G?nter@22651 | 88 then |
pascal@18730 | 89 mv -f "$1/etc/resolv.conf.$$" "$1/etc/recolv.conf" 2> /dev/null |
pascal@18730 | 90 fi |
al@18741 | 91 |
al@18741 | 92 : |
slaxemulator@6984 | 93 } |