wok-6.x annotate docbook-xsl-ns/receipt @ rev 23925
Add Connect-Four
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Aug 23 10:18:23 2020 +0000 (2020-08-23) |
parents | 60a578ea2fce |
children | bfabe25c21ff |
rev | line source |
---|---|
paul@6996 | 1 # SliTaz package receipt. |
paul@6996 | 2 |
paul@6996 | 3 PACKAGE="docbook-xsl-ns" |
Hans-G?nter@22652 | 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" |
pascal@22864 | 9 WEB_SITE="https://github.com/docbook/wiki/wiki/" |
Hans-G?nter@22652 | 10 |
paul@6996 | 11 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
Hans-G?nter@22652 | 12 WGET_URL="https://sourceforge.net/projects/docbook/files/$PACKAGE/$VERSION/$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 { |
Hans-G?nter@22653 | 19 cd $src |
slaxemulator@9558 | 20 pkgroot=$fs/usr/share/xml/docbook/stylesheet/$PACKAGE |
Hans-G?nter@22652 | 21 install -dm755 $pkgroot/common |
Hans-G?nter@22652 | 22 install -dm755 $pkgroot/params |
al@18734 | 23 |
Hans-G?nter@22652 | 24 for fn in xml xsl dtd ent |
Hans-G?nter@22652 | 25 do |
Hans-G?nter@22652 | 26 install -m644 common/*.${fn} $pkgroot/common/ |
Hans-G?nter@22652 | 27 done |
al@18734 | 28 |
Hans-G?nter@22652 | 29 for fn in fo highlighting html roundtrip |
Hans-G?nter@22652 | 30 do |
Hans-G?nter@22652 | 31 install -dm755 ${pkgroot}/${fn} |
Hans-G?nter@22652 | 32 install -m644 ${fn}/*.xml ${pkgroot}/${fn}/ |
Hans-G?nter@22652 | 33 install -m644 ${fn}/*.xsl ${pkgroot}/${fn}/ |
Hans-G?nter@22652 | 34 done |
slaxemulator@9558 | 35 |
Hans-G?nter@22652 | 36 for fn in eclipse htmlhelp javahelp lib manpages profiling template website xhtml xhtml-1_1 |
Hans-G?nter@22652 | 37 do |
Hans-G?nter@22652 | 38 install -dm755 ${pkgroot}/${fn} |
Hans-G?nter@22652 | 39 install -m644 ${fn}/*.xsl ${pkgroot}/${fn}/ |
Hans-G?nter@22652 | 40 done |
paul@6996 | 41 } |
paul@6996 | 42 |
paul@6996 | 43 # Pre and post install commands for Tazpkg. |
paul@6996 | 44 post_install() |
paul@6996 | 45 { |
Hans-G?nter@22652 | 46 if [ "$1" ] |
Hans-G?nter@22652 | 47 then |
Hans-G?nter@22652 | 48 mv -f "$1/etc/resolv.conf" "$1/etc/recolv.conf.$$" 2>/dev/null |
Hans-G?nter@22652 | 49 cp /etc/resolv.conf "$1/etc/resolv.conf" |
pascal@18730 | 50 fi |
paul@6996 | 51 |
paul@6996 | 52 # Create a /etc/xml/catalog file |
Hans-G?nter@22652 | 53 if [ ! -d "$1/etc/xml" ] |
Hans-G?nter@22652 | 54 then |
Hans-G?nter@22652 | 55 install -v -m755 -d "$1/etc/xml" |
Hans-G?nter@22652 | 56 fi && |
Hans-G?nter@22652 | 57 if [ ! -f "$1/etc/xml/catalog" ] |
Hans-G?nter@22652 | 58 then |
al@18734 | 59 chroot "$1/" xmlcatalog --noout --create /etc/xml/catalog |
paul@6996 | 60 fi && |
paul@6996 | 61 |
pascal@18730 | 62 chroot "$1/" xmlcatalog --noout --add "rewriteSystem" \ |
slaxemulator@9558 | 63 "http://docbook.sourceforge.net/release/xsl-ns/$VERSION" \ |
paul@6996 | 64 "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \ |
pascal@18730 | 65 /etc/xml/catalog && |
paul@6996 | 66 |
pascal@18730 | 67 chroot "$1/" xmlcatalog --noout --add "rewriteURI" \ |
slaxemulator@9558 | 68 "http://docbook.sourceforge.net/release/xsl-ns/$VERSION" \ |
paul@6996 | 69 "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \ |
pascal@18730 | 70 /etc/xml/catalog && |
paul@6996 | 71 |
pascal@18730 | 72 chroot "$1/" xmlcatalog --noout --add "rewriteSystem" \ |
paul@6996 | 73 "http://docbook.sourceforge.net/release/xsl-ns/current" \ |
paul@6996 | 74 "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \ |
pascal@18730 | 75 /etc/xml/catalog && |
paul@6996 | 76 |
pascal@18730 | 77 chroot "$1/" xmlcatalog --noout --add "rewriteURI" \ |
paul@6996 | 78 "http://docbook.sourceforge.net/release/xsl-ns/current" \ |
paul@6996 | 79 "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \ |
pascal@18730 | 80 /etc/xml/catalog |
al@18734 | 81 |
Hans-G?nter@22652 | 82 if [ "$1" ] |
Hans-G?nter@22652 | 83 then |
Hans-G?nter@22652 | 84 mv -f "$1/etc/resolv.conf.$$" "$1/etc/recolv.conf" 2>/dev/null |
pascal@18730 | 85 fi |
paul@6996 | 86 } |