wok annotate docbook-xsl-ns/receipt @ rev 22187
updated xorg-dev-proto (7.5 -> 7.7)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Nov 11 09:07:45 2019 +0100 (2019-11-11) |
parents | de9df694c711 |
children | e3178fd2753b |
rev | line source |
---|---|
paul@6996 | 1 # SliTaz package receipt. |
paul@6996 | 2 |
paul@6996 | 3 PACKAGE="docbook-xsl-ns" |
paul@7711 | 4 VERSION="1.76.1" |
paul@6996 | 5 CATEGORY="development" |
paul@6996 | 6 SHORT_DESC="DocBook XSL (namespaced) stylesheets." |
paul@6996 | 7 MAINTAINER="paul@slitaz.org" |
pascal@15579 | 8 LICENSE="MIT" |
paul@6996 | 9 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pascal@20671 | 10 WEB_SITE="http://docbook.sourceforge.net/" |
paul@6996 | 11 WGET_URL="http://jaist.dl.sourceforge.net/sourceforge/docbook/$TARBALL" |
paul@6996 | 12 |
pascal@15579 | 13 DEPENDS="libxml2-tools libxslt" |
pascal@15579 | 14 |
paul@6996 | 15 # Rules to gen a SliTaz package suitable for Tazpkg. |
paul@6996 | 16 genpkg_rules() |
paul@6996 | 17 { |
pascal@18738 | 18 cd $src |
slaxemulator@9558 | 19 pkgroot=$fs/usr/share/xml/docbook/stylesheet/$PACKAGE |
slaxemulator@9558 | 20 install -dm755 $pkgroot/common |
slaxemulator@9558 | 21 install -dm755 $pkgroot/params |
al@18734 | 22 |
slaxemulator@9558 | 23 for fn in xml xsl dtd ent; do |
slaxemulator@9558 | 24 install -m644 common/*.${fn} $pkgroot/common/ |
slaxemulator@9558 | 25 done |
al@18734 | 26 |
slaxemulator@9558 | 27 for fn in fo highlighting html roundtrip; do |
slaxemulator@9558 | 28 install -dm755 ${pkgroot}/${fn} |
slaxemulator@9558 | 29 install -m644 ${fn}/*.xml ${pkgroot}/${fn}/ |
slaxemulator@9558 | 30 install -m644 ${fn}/*.xsl ${pkgroot}/${fn}/ |
slaxemulator@9558 | 31 done |
slaxemulator@9558 | 32 |
slaxemulator@9558 | 33 for fn in eclipse htmlhelp javahelp lib manpages profiling template website xhtml xhtml-1_1; do |
slaxemulator@9558 | 34 install -dm755 ${pkgroot}/${fn} |
slaxemulator@9558 | 35 install -m644 ${fn}/*.xsl ${pkgroot}/${fn}/ |
slaxemulator@9558 | 36 done |
paul@6996 | 37 } |
paul@6996 | 38 |
paul@6996 | 39 # Pre and post install commands for Tazpkg. |
paul@6996 | 40 post_install() |
paul@6996 | 41 { |
pascal@18730 | 42 if [ "$1" ]; then |
al@18734 | 43 mv -f "$1/etc/resolv.conf" "$1/etc/recolv.conf.$$" 2>/dev/null |
pascal@18730 | 44 cp /etc/resolv.conf "$1/etc/resolv.conf" |
pascal@18730 | 45 fi |
paul@6996 | 46 |
paul@6996 | 47 # Create a /etc/xml/catalog file |
pascal@18730 | 48 if [ ! -d "$1/etc/xml" ]; then install -v -m755 -d "$1/etc/xml"; fi && |
pascal@18730 | 49 if [ ! -f "$1/etc/xml/catalog" ]; then |
al@18734 | 50 chroot "$1/" xmlcatalog --noout --create /etc/xml/catalog |
paul@6996 | 51 fi && |
paul@6996 | 52 |
pascal@18730 | 53 chroot "$1/" xmlcatalog --noout --add "rewriteSystem" \ |
slaxemulator@9558 | 54 "http://docbook.sourceforge.net/release/xsl-ns/$VERSION" \ |
paul@6996 | 55 "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \ |
pascal@18730 | 56 /etc/xml/catalog && |
paul@6996 | 57 |
pascal@18730 | 58 chroot "$1/" xmlcatalog --noout --add "rewriteURI" \ |
slaxemulator@9558 | 59 "http://docbook.sourceforge.net/release/xsl-ns/$VERSION" \ |
paul@6996 | 60 "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \ |
pascal@18730 | 61 /etc/xml/catalog && |
paul@6996 | 62 |
pascal@18730 | 63 chroot "$1/" xmlcatalog --noout --add "rewriteSystem" \ |
paul@6996 | 64 "http://docbook.sourceforge.net/release/xsl-ns/current" \ |
paul@6996 | 65 "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \ |
pascal@18730 | 66 /etc/xml/catalog && |
paul@6996 | 67 |
pascal@18730 | 68 chroot "$1/" xmlcatalog --noout --add "rewriteURI" \ |
paul@6996 | 69 "http://docbook.sourceforge.net/release/xsl-ns/current" \ |
paul@6996 | 70 "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \ |
pascal@18730 | 71 /etc/xml/catalog |
al@18734 | 72 |
pascal@18730 | 73 if [ "$1" ]; then |
al@18734 | 74 mv -f "$1/etc/resolv.conf.$$" "$1/etc/recolv.conf" 2>/dev/null |
pascal@18730 | 75 fi |
paul@6996 | 76 } |