
Receipt for package "docbook-xsl-ns"
# SliTaz package receipt. PACKAGE="docbook-xsl-ns" VERSION="1.79.1" CATEGORY="development" SHORT_DESC="DocBook XSL (namespaced) stylesheets." MAINTAINER="paul@slitaz.org" LICENSE="MIT" WEB_SITE="https://github.com/docbook/wiki/wiki/" TARBALL="$PACKAGE-$VERSION.tar.bz2" WGET_URL="https://sourceforge.net/projects/docbook/files/$PACKAGE/$VERSION/$TARBALL" DEPENDS="libxml2-tools libxslt" HOST_ARCH="i486 x86_64" # What is the latest version available today? current_version() { wget -O - https://sourceforge.net/projects/docbook/files/docbook-xsl-ns/ 2>/dev/null | \ sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ sed '/scope="row/!d;s|.*/docbook-xsl-ns/||;s|/.*||;q' } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { cd $src pkgroot=$fs/usr/share/xml/docbook/stylesheet/$PACKAGE install -dm755 $pkgroot/common install -dm755 $pkgroot/params for fn in xml xsl dtd ent do install -m644 common/*.${fn} $pkgroot/common/ done for fn in fo highlighting html roundtrip do install -dm755 ${pkgroot}/${fn} install -m644 ${fn}/*.xml ${pkgroot}/${fn}/ install -m644 ${fn}/*.xsl ${pkgroot}/${fn}/ done for fn in eclipse htmlhelp javahelp lib manpages profiling template website xhtml xhtml-1_1 do install -dm755 ${pkgroot}/${fn} install -m644 ${fn}/*.xsl ${pkgroot}/${fn}/ done } # Pre and post install commands for Tazpkg. post_install() { if [ "$1" ] then mv -f "$1/etc/resolv.conf" "$1/etc/recolv.conf.$$" 2>/dev/null cp /etc/resolv.conf "$1/etc/resolv.conf" fi # Create a /etc/xml/catalog file if [ ! -d "$1/etc/xml" ] then install -v -m755 -d "$1/etc/xml" fi && if [ ! -f "$1/etc/xml/catalog" ] then chroot "$1/" xmlcatalog --noout --create /etc/xml/catalog fi && chroot "$1/" xmlcatalog --noout --add "rewriteSystem" \ "http://docbook.sourceforge.net/release/xsl-ns/$VERSION" \ "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \ /etc/xml/catalog && chroot "$1/" xmlcatalog --noout --add "rewriteURI" \ "http://docbook.sourceforge.net/release/xsl-ns/$VERSION" \ "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \ /etc/xml/catalog && chroot "$1/" xmlcatalog --noout --add "rewriteSystem" \ "http://docbook.sourceforge.net/release/xsl-ns/current" \ "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \ /etc/xml/catalog && chroot "$1/" xmlcatalog --noout --add "rewriteURI" \ "http://docbook.sourceforge.net/release/xsl-ns/current" \ "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \ /etc/xml/catalog if [ "$1" ] then mv -f "$1/etc/resolv.conf.$$" "$1/etc/recolv.conf" 2>/dev/null fi }
6091 packages and 256114 files in current database (Thu Apr 3 00:00:04 2025)