wok annotate docbook-xsl-ns/receipt @ rev 18730
Quote root dir in post_install
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Dec 20 15:13:45 2015 +0100 (2015-12-20) |
parents | eb8067417980 |
children | d6ca18366f41 |
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" |
paul@6996 | 10 WEB_SITE="http://wiki.docbook.org/topic/DocBookXslStylesheets" |
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 { |
slaxemulator@9558 | 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 |
slaxemulator@9558 | 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 |
slaxemulator@9558 | 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 { |
paul@6996 | 42 echo -n "Processing post-install commands..." |
pascal@18730 | 43 if [ "$1" ]; then |
pascal@18730 | 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 |
paul@6996 | 47 |
paul@6996 | 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 |
pascal@18730 | 51 chroot "$1/" xmlcatalog --noout --create /etc/xml/catalog |
paul@6996 | 52 fi && |
paul@6996 | 53 |
pascal@18730 | 54 chroot "$1/" xmlcatalog --noout --add "rewriteSystem" \ |
slaxemulator@9558 | 55 "http://docbook.sourceforge.net/release/xsl-ns/$VERSION" \ |
paul@6996 | 56 "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \ |
pascal@18730 | 57 /etc/xml/catalog && |
paul@6996 | 58 |
pascal@18730 | 59 chroot "$1/" xmlcatalog --noout --add "rewriteURI" \ |
slaxemulator@9558 | 60 "http://docbook.sourceforge.net/release/xsl-ns/$VERSION" \ |
paul@6996 | 61 "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \ |
pascal@18730 | 62 /etc/xml/catalog && |
paul@6996 | 63 |
pascal@18730 | 64 chroot "$1/" xmlcatalog --noout --add "rewriteSystem" \ |
paul@6996 | 65 "http://docbook.sourceforge.net/release/xsl-ns/current" \ |
paul@6996 | 66 "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \ |
pascal@18730 | 67 /etc/xml/catalog && |
paul@6996 | 68 |
pascal@18730 | 69 chroot "$1/" xmlcatalog --noout --add "rewriteURI" \ |
paul@6996 | 70 "http://docbook.sourceforge.net/release/xsl-ns/current" \ |
paul@6996 | 71 "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \ |
pascal@18730 | 72 /etc/xml/catalog |
paul@6996 | 73 status |
pascal@18730 | 74 if [ "$1" ]; then |
pascal@18730 | 75 mv -f "$1/etc/resolv.conf.$$" "$1/etc/recolv.conf" 2> /dev/null |
pascal@18730 | 76 fi |
paul@6996 | 77 } |
paul@6996 | 78 |