wok-next rev 6983
Added docbook-xml.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Fri Oct 29 01:22:58 2010 +0000 (2010-10-29) |
parents | 156441c8051a |
children | 1111d4610860 |
files | docbook-xml/receipt |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/docbook-xml/receipt Fri Oct 29 01:22:58 2010 +0000 1.3 @@ -0,0 +1,70 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="docbook-xml" 1.7 +VERSION="5.0" 1.8 +CATEGORY="development" 1.9 +SHORT_DESC="General purpose XML Document Type Definition." 1.10 +MAINTAINER="paul@slitaz.org" 1.11 +DEPENDS="libxml2-tools libxml2" 1.12 +BUILD_DEPENDS="unzip" 1.13 +SOURCE="docbook" 1.14 +TARBALL="$SOURCE-$VERSION.zip" 1.15 +WEB_SITE="http://www.docbook.org/" 1.16 +WGET_URL="http://www.docbook.org/xml/$VERSION/$TARBALL" 1.17 + 1.18 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.19 +genpkg_rules() 1.20 +{ 1.21 + mkdir -p $fs/usr/share/xml/docbook/schema/5.0/dtd 1.22 + mkdir -p $fs/usr/share/xml/docbook/schema/5.0/rng 1.23 + mkdir -p $fs/usr/share/xml/docbook/schema/5.0/sch 1.24 + mkdir -p $fs/usr/share/xml/docbook/schema/5.0/xsd 1.25 + mkdir -p $fs/usr/share/xml/docbook/stylesheet/docbook5 1.26 + mkdir -p $fs/usr/share/doc/docbook-xml-5.0/images/ 1.27 + 1.28 + src=$SOURCE-$VERSION 1.29 + cp -a $src/dtd/* $fs/usr/share/xml/docbook/schema/5.0/dtd 1.30 + cp -a $src/rng/* $fs/usr/share/xml/docbook/schema/5.0/rng 1.31 + cp -a $src/sch/* $fs/usr/share/xml/docbook/schema/5.0/sch 1.32 + cp -a $src/xsd/* $fs/usr/share/xml/docbook/schema/5.0/xsd 1.33 + cp -a $src/tools/* $fs/usr/share/xml/docbook/stylesheet/docbook5 1.34 + cp -a $src/docs/images/* $fs/usr/share/doc/docbook-xml-5.0/images 1.35 + cp -a $src/docs/* $fs/usr/share/doc/docbook-xml-5.0 1.36 + cp -a $src/README $fs/usr/share/doc/docbook-xml-5.0 1.37 + cp -a $src/catalog.xml $fs/usr/share/xml/docbook/schema/5.0 1.38 + cp -a $src/docbook.nvdl $fs/usr/share/xml/docbook/schema/5.0 1.39 + 1.40 +} 1.41 +# Pre and post install commands for Tazpkg. 1.42 +post_install() 1.43 +{ 1.44 + echo -n "Processing post-install commands..." 1.45 + 1.46 + # Add /etc/xml/catalog 1.47 + install -d -m755 $1/etc/xml 1.48 + [ ! -f $1/etc/xml/catalog ] && 1.49 + xmlcatalog --noout --create $1/etc/xml/catalog 1.50 + 1.51 + xmlcatalog --noout --add "delegatePublic" \ 1.52 + "-//OASIS//DTD DocBook XML 5.0//EN" \ 1.53 + "file:///usr/share/xml/docbook/schema/5.0/catalog.xml" \ 1.54 + $1/etc/xml/catalog && 1.55 + xmlcatalog --noout --add "delegateSystem" \ 1.56 + "http://www.oasis-open.org/docbook/xml/5.0" \ 1.57 + "file:///usr/share/xml/docbook/schema/5.0/catalog.xml" \ 1.58 + $1/etc/xml/catalog && 1.59 + xmlcatalog --noout --add "delegateSystem" \ 1.60 + "http://docbook.org/xml/5.0" \ 1.61 + "file:///usr/share/xml/docbook/schema/5.0/catalog.xml" \ 1.62 + $1/etc/xml/catalog && 1.63 + xmlcatalog --noout --add "delegateURI" \ 1.64 + "http://www.oasis-open.org/docbook/xml/5.0" \ 1.65 + "file:///usr/share/xml/docbook/schema/5.0/catalog.xml" \ 1.66 + $1/etc/xml/catalog && 1.67 + xmlcatalog --noout --add "delegateURI" \ 1.68 + "http://docbook.org/xml/5.0" \ 1.69 + "file:///usr/share/xml/docbook/schema/5.0/catalog.xml" \ 1.70 + $1/etc/xml/catalog 1.71 + status 1.72 +} 1.73 +