wok-6.x diff docbook-xsl/receipt @ rev 7593
Busybox config change: unset CONFIG_AR (it conflict with binutils ar) & unset CONFIG_XZ (only unxz is actually usefull - it appears that lzma legacy is our better compression tool)
author | Antoine Bodin <gokhlayeh@slitaz.org> |
---|---|
date | Fri Dec 10 19:35:10 2010 +0100 (2010-12-10) |
parents | |
children | 8e7c178e1fc8 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/docbook-xsl/receipt Fri Dec 10 19:35:10 2010 +0100 1.3 @@ -0,0 +1,56 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="docbook-xsl" 1.7 +VERSION="1.76.0" 1.8 +CATEGORY="development" 1.9 +SHORT_DESC="DocBook XSL stylesheets." 1.10 +MAINTAINER="paul@slitaz.org" 1.11 +DEPENDS="docbook-xml libxml2-tools libxslt" 1.12 +TARBALL="$PACKAGE-$VERSION.tar.bz2" 1.13 +WEB_SITE="http://wiki.docbook.org/topic/DocBookXslStylesheets" 1.14 +WGET_URL="$SF_MIRROR/docbook/$TARBALL" 1.15 + 1.16 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.17 +genpkg_rules() 1.18 +{ 1.19 + mkdir -p $fs/usr/share/xml/docbook/stylesheet/$PACKAGE 1.20 + cp -a $src/* $fs/usr/share/xml/docbook/stylesheet/$PACKAGE 1.21 +} 1.22 + 1.23 +# Pre and post install commands for Tazpkg. 1.24 +post_install() 1.25 +{ 1.26 + echo -n "Processing post-install commands..." 1.27 + 1.28 + # Create a /etc/xml/catalog file 1.29 + if [ ! -d $1/etc/xml ]; then install -v -m755 -d $1/etc/xml; fi && 1.30 + if [ ! -f $1/etc/xml/catalog ]; then 1.31 + xmlcatalog --noout --create $1/etc/xml/catalog 1.32 + fi && 1.33 + 1.34 + xmlcatalog --noout --add "rewriteSystem" \ 1.35 + "http://docbook.sourceforge.net/release/xsl/1.76.0" \ 1.36 + "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \ 1.37 + $1/etc/xml/catalog && 1.38 + 1.39 + xmlcatalog --noout --add "rewriteURI" \ 1.40 + "http://docbook.sourceforge.net/release/xsl/1.76.0" \ 1.41 + "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \ 1.42 + $1/etc/xml/catalog && 1.43 + 1.44 + xmlcatalog --noout --add "rewriteSystem" \ 1.45 + "http://docbook.sourceforge.net/release/xsl/current" \ 1.46 + "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \ 1.47 + $1/etc/xml/catalog && 1.48 + 1.49 + xmlcatalog --noout --add "rewriteURI" \ 1.50 + "http://docbook.sourceforge.net/release/xsl/current" \ 1.51 + "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \ 1.52 + $1/etc/xml/catalog 1.53 + 1.54 + # link nwalsh dir 1.55 + cd $1/usr/share/xml/docbook/stylesheet 1.56 + ln -s $PACKAGE nwalsh 1.57 + status 1.58 +} 1.59 +