wok-next annotate docbook-xsl-ns/receipt @ rev 20712
libtorrent: fix rtorrent building for non-64bit archs
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sun May 27 12:13:53 2018 +0300 (2018-05-27) |
parents | de9df694c711 |
children | a3c581bf52b8 |
rev | line source |
---|---|
paul@6996 | 1 # SliTaz package receipt. |
paul@6996 | 2 |
paul@6996 | 3 PACKAGE="docbook-xsl-ns" |
al@19607 | 4 VERSION="1.79.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" |
al@19607 | 9 WEB_SITE="http://wiki.docbook.org/topic/DocBookXslStylesheets" |
al@19607 | 10 |
paul@6996 | 11 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
al@19607 | 12 WGET_URL="$SF_MIRROR/docbook/$TARBALL" |
paul@6996 | 13 |
pascal@15579 | 14 DEPENDS="libxml2-tools libxslt" |
pascal@15579 | 15 |
paul@6996 | 16 # Rules to gen a SliTaz package suitable for Tazpkg. |
paul@6996 | 17 genpkg_rules() |
paul@6996 | 18 { |
pascal@18738 | 19 cd $src |
slaxemulator@9558 | 20 pkgroot=$fs/usr/share/xml/docbook/stylesheet/$PACKAGE |
slaxemulator@9558 | 21 install -dm755 $pkgroot/common |
slaxemulator@9558 | 22 install -dm755 $pkgroot/params |
al@18734 | 23 |
slaxemulator@9558 | 24 for fn in xml xsl dtd ent; do |
slaxemulator@9558 | 25 install -m644 common/*.${fn} $pkgroot/common/ |
slaxemulator@9558 | 26 done |
al@18734 | 27 |
slaxemulator@9558 | 28 for fn in fo highlighting html roundtrip; do |
slaxemulator@9558 | 29 install -dm755 ${pkgroot}/${fn} |
slaxemulator@9558 | 30 install -m644 ${fn}/*.xml ${pkgroot}/${fn}/ |
slaxemulator@9558 | 31 install -m644 ${fn}/*.xsl ${pkgroot}/${fn}/ |
slaxemulator@9558 | 32 done |
slaxemulator@9558 | 33 |
slaxemulator@9558 | 34 for fn in eclipse htmlhelp javahelp lib manpages profiling template website xhtml xhtml-1_1; do |
slaxemulator@9558 | 35 install -dm755 ${pkgroot}/${fn} |
slaxemulator@9558 | 36 install -m644 ${fn}/*.xsl ${pkgroot}/${fn}/ |
slaxemulator@9558 | 37 done |
paul@6996 | 38 } |
paul@6996 | 39 |
paul@6996 | 40 # Pre and post install commands for Tazpkg. |
paul@6996 | 41 post_install() |
paul@6996 | 42 { |
pascal@18730 | 43 if [ "$1" ]; then |
al@18734 | 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 |
al@18734 | 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 |
al@18734 | 73 |
pascal@18730 | 74 if [ "$1" ]; then |
al@18734 | 75 mv -f "$1/etc/resolv.conf.$$" "$1/etc/recolv.conf" 2>/dev/null |
pascal@18730 | 76 fi |
paul@6996 | 77 } |