wok-current annotate docbook-xsl/receipt @ rev 17503
grep: fix busybox paths (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Jan 08 11:02:18 2015 +0100 (2015-01-08) |
parents | 61d7b63bf7b1 |
children | 365611cfc2cf |
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 { |
slaxemulator@9557 | 18 cd $src |
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 |
slaxemulator@9557 | 22 |
slaxemulator@9557 | 23 for fn in xml xsl dtd ent; do |
slaxemulator@9557 | 24 install -m644 common/*.${fn} $pkgroot/common/ |
slaxemulator@9557 | 25 done |
slaxemulator@9557 | 26 |
slaxemulator@9557 | 27 for fn in fo highlighting html roundtrip; do |
slaxemulator@9557 | 28 install -dm755 ${pkgroot}/${fn} |
slaxemulator@9557 | 29 install -m644 ${fn}/*.xml ${pkgroot}/${fn}/ |
slaxemulator@9557 | 30 install -m644 ${fn}/*.xsl ${pkgroot}/${fn}/ |
slaxemulator@9557 | 31 done |
slaxemulator@9557 | 32 |
slaxemulator@9557 | 33 for fn in eclipse htmlhelp javahelp lib manpages profiling template website xhtml xhtml-1_1; do |
slaxemulator@9557 | 34 install -dm755 ${pkgroot}/${fn} |
slaxemulator@9557 | 35 install -m644 ${fn}/*.xsl ${pkgroot}/${fn}/ |
slaxemulator@9557 | 36 done |
slaxemulator@6984 | 37 } |
slaxemulator@6984 | 38 |
slaxemulator@6984 | 39 # Pre and post install commands for Tazpkg. |
slaxemulator@6984 | 40 post_install() |
slaxemulator@6984 | 41 { |
slaxemulator@6984 | 42 echo -n "Processing post-install commands..." |
slaxemulator@6984 | 43 |
slaxemulator@6984 | 44 # Create a /etc/xml/catalog file |
slaxemulator@6984 | 45 if [ ! -d $1/etc/xml ]; then install -v -m755 -d $1/etc/xml; fi && |
slaxemulator@6984 | 46 if [ ! -f $1/etc/xml/catalog ]; then |
slaxemulator@6984 | 47 xmlcatalog --noout --create $1/etc/xml/catalog |
slaxemulator@6984 | 48 fi && |
slaxemulator@6984 | 49 |
slaxemulator@6984 | 50 xmlcatalog --noout --add "rewriteSystem" \ |
slaxemulator@9557 | 51 "http://docbook.sourceforge.net/release/xsl/$VERSION" \ |
slaxemulator@6984 | 52 "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \ |
slaxemulator@6984 | 53 $1/etc/xml/catalog && |
slaxemulator@6984 | 54 |
slaxemulator@6984 | 55 xmlcatalog --noout --add "rewriteURI" \ |
slaxemulator@9557 | 56 "http://docbook.sourceforge.net/release/xsl/$VERSION" \ |
slaxemulator@6984 | 57 "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \ |
slaxemulator@6984 | 58 $1/etc/xml/catalog && |
slaxemulator@6984 | 59 |
slaxemulator@6984 | 60 xmlcatalog --noout --add "rewriteSystem" \ |
slaxemulator@6984 | 61 "http://docbook.sourceforge.net/release/xsl/current" \ |
slaxemulator@6984 | 62 "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \ |
slaxemulator@6984 | 63 $1/etc/xml/catalog && |
slaxemulator@6984 | 64 |
slaxemulator@6984 | 65 xmlcatalog --noout --add "rewriteURI" \ |
slaxemulator@6984 | 66 "http://docbook.sourceforge.net/release/xsl/current" \ |
slaxemulator@6984 | 67 "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \ |
slaxemulator@6984 | 68 $1/etc/xml/catalog |
slaxemulator@6984 | 69 |
slaxemulator@6984 | 70 # link nwalsh dir |
slaxemulator@6984 | 71 cd $1/usr/share/xml/docbook/stylesheet |
slaxemulator@6984 | 72 ln -s $PACKAGE nwalsh |
slaxemulator@6984 | 73 status |
slaxemulator@6984 | 74 } |
slaxemulator@6984 | 75 |