wok-current annotate docbook-xsl-ns/receipt @ rev 25106
linux-libre: update wget_url
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Jun 22 14:39:56 2022 +0000 (2022-06-22) |
parents | 3cda55aed22c |
children | 5926178cd6fa |
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 |
pascal@24439 | 16 # What is the latest version available today? |
pascal@24439 | 17 current_version() |
pascal@24439 | 18 { |
pascal@24439 | 19 wget -O - https://sourceforge.net/projects/docbook/files/docbook-xsl-ns/ 2>/dev/null | \ |
pascal@24439 | 20 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24439 | 21 sed '/scope="row/!d;s|.*/docbook-xsl-ns/||;s|/.*||;q' |
pascal@24439 | 22 } |
pascal@24439 | 23 |
paul@6996 | 24 # Rules to gen a SliTaz package suitable for Tazpkg. |
paul@6996 | 25 genpkg_rules() |
paul@6996 | 26 { |
Hans-G?nter@22653 | 27 cd $src |
slaxemulator@9558 | 28 pkgroot=$fs/usr/share/xml/docbook/stylesheet/$PACKAGE |
Hans-G?nter@22652 | 29 install -dm755 $pkgroot/common |
Hans-G?nter@22652 | 30 install -dm755 $pkgroot/params |
al@18734 | 31 |
Hans-G?nter@22652 | 32 for fn in xml xsl dtd ent |
Hans-G?nter@22652 | 33 do |
Hans-G?nter@22652 | 34 install -m644 common/*.${fn} $pkgroot/common/ |
Hans-G?nter@22652 | 35 done |
al@18734 | 36 |
Hans-G?nter@22652 | 37 for fn in fo highlighting html roundtrip |
Hans-G?nter@22652 | 38 do |
Hans-G?nter@22652 | 39 install -dm755 ${pkgroot}/${fn} |
Hans-G?nter@22652 | 40 install -m644 ${fn}/*.xml ${pkgroot}/${fn}/ |
Hans-G?nter@22652 | 41 install -m644 ${fn}/*.xsl ${pkgroot}/${fn}/ |
Hans-G?nter@22652 | 42 done |
slaxemulator@9558 | 43 |
Hans-G?nter@22652 | 44 for fn in eclipse htmlhelp javahelp lib manpages profiling template website xhtml xhtml-1_1 |
Hans-G?nter@22652 | 45 do |
Hans-G?nter@22652 | 46 install -dm755 ${pkgroot}/${fn} |
Hans-G?nter@22652 | 47 install -m644 ${fn}/*.xsl ${pkgroot}/${fn}/ |
Hans-G?nter@22652 | 48 done |
paul@6996 | 49 } |
paul@6996 | 50 |
paul@6996 | 51 # Pre and post install commands for Tazpkg. |
paul@6996 | 52 post_install() |
paul@6996 | 53 { |
Hans-G?nter@22652 | 54 if [ "$1" ] |
Hans-G?nter@22652 | 55 then |
Hans-G?nter@22652 | 56 mv -f "$1/etc/resolv.conf" "$1/etc/recolv.conf.$$" 2>/dev/null |
Hans-G?nter@22652 | 57 cp /etc/resolv.conf "$1/etc/resolv.conf" |
pascal@18730 | 58 fi |
paul@6996 | 59 |
paul@6996 | 60 # Create a /etc/xml/catalog file |
Hans-G?nter@22652 | 61 if [ ! -d "$1/etc/xml" ] |
Hans-G?nter@22652 | 62 then |
Hans-G?nter@22652 | 63 install -v -m755 -d "$1/etc/xml" |
Hans-G?nter@22652 | 64 fi && |
Hans-G?nter@22652 | 65 if [ ! -f "$1/etc/xml/catalog" ] |
Hans-G?nter@22652 | 66 then |
al@18734 | 67 chroot "$1/" xmlcatalog --noout --create /etc/xml/catalog |
paul@6996 | 68 fi && |
paul@6996 | 69 |
pascal@18730 | 70 chroot "$1/" xmlcatalog --noout --add "rewriteSystem" \ |
slaxemulator@9558 | 71 "http://docbook.sourceforge.net/release/xsl-ns/$VERSION" \ |
paul@6996 | 72 "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \ |
pascal@18730 | 73 /etc/xml/catalog && |
paul@6996 | 74 |
pascal@18730 | 75 chroot "$1/" xmlcatalog --noout --add "rewriteURI" \ |
slaxemulator@9558 | 76 "http://docbook.sourceforge.net/release/xsl-ns/$VERSION" \ |
paul@6996 | 77 "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \ |
pascal@18730 | 78 /etc/xml/catalog && |
paul@6996 | 79 |
pascal@18730 | 80 chroot "$1/" xmlcatalog --noout --add "rewriteSystem" \ |
paul@6996 | 81 "http://docbook.sourceforge.net/release/xsl-ns/current" \ |
paul@6996 | 82 "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \ |
pascal@18730 | 83 /etc/xml/catalog && |
paul@6996 | 84 |
pascal@18730 | 85 chroot "$1/" xmlcatalog --noout --add "rewriteURI" \ |
paul@6996 | 86 "http://docbook.sourceforge.net/release/xsl-ns/current" \ |
paul@6996 | 87 "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \ |
pascal@18730 | 88 /etc/xml/catalog |
al@18734 | 89 |
Hans-G?nter@22652 | 90 if [ "$1" ] |
Hans-G?nter@22652 | 91 then |
Hans-G?nter@22652 | 92 mv -f "$1/etc/resolv.conf.$$" "$1/etc/recolv.conf" 2>/dev/null |
pascal@18730 | 93 fi |
paul@6996 | 94 } |