wok-current annotate docbook-xml/receipt @ rev 6983

Added docbook-xml.
author Christopher Rogers <slaxemulator@gmail.com>
date Fri Oct 29 01:22:58 2010 +0000 (2010-10-29)
parents
children d84e95f8e99e
rev   line source
slaxemulator@6983 1 # SliTaz package receipt.
slaxemulator@6983 2
slaxemulator@6983 3 PACKAGE="docbook-xml"
slaxemulator@6983 4 VERSION="5.0"
slaxemulator@6983 5 CATEGORY="development"
slaxemulator@6983 6 SHORT_DESC="General purpose XML Document Type Definition."
slaxemulator@6983 7 MAINTAINER="paul@slitaz.org"
slaxemulator@6983 8 DEPENDS="libxml2-tools libxml2"
slaxemulator@6983 9 BUILD_DEPENDS="unzip"
slaxemulator@6983 10 SOURCE="docbook"
slaxemulator@6983 11 TARBALL="$SOURCE-$VERSION.zip"
slaxemulator@6983 12 WEB_SITE="http://www.docbook.org/"
slaxemulator@6983 13 WGET_URL="http://www.docbook.org/xml/$VERSION/$TARBALL"
slaxemulator@6983 14
slaxemulator@6983 15 # Rules to gen a SliTaz package suitable for Tazpkg.
slaxemulator@6983 16 genpkg_rules()
slaxemulator@6983 17 {
slaxemulator@6983 18 mkdir -p $fs/usr/share/xml/docbook/schema/5.0/dtd
slaxemulator@6983 19 mkdir -p $fs/usr/share/xml/docbook/schema/5.0/rng
slaxemulator@6983 20 mkdir -p $fs/usr/share/xml/docbook/schema/5.0/sch
slaxemulator@6983 21 mkdir -p $fs/usr/share/xml/docbook/schema/5.0/xsd
slaxemulator@6983 22 mkdir -p $fs/usr/share/xml/docbook/stylesheet/docbook5
slaxemulator@6983 23 mkdir -p $fs/usr/share/doc/docbook-xml-5.0/images/
slaxemulator@6983 24
slaxemulator@6983 25 src=$SOURCE-$VERSION
slaxemulator@6983 26 cp -a $src/dtd/* $fs/usr/share/xml/docbook/schema/5.0/dtd
slaxemulator@6983 27 cp -a $src/rng/* $fs/usr/share/xml/docbook/schema/5.0/rng
slaxemulator@6983 28 cp -a $src/sch/* $fs/usr/share/xml/docbook/schema/5.0/sch
slaxemulator@6983 29 cp -a $src/xsd/* $fs/usr/share/xml/docbook/schema/5.0/xsd
slaxemulator@6983 30 cp -a $src/tools/* $fs/usr/share/xml/docbook/stylesheet/docbook5
slaxemulator@6983 31 cp -a $src/docs/images/* $fs/usr/share/doc/docbook-xml-5.0/images
slaxemulator@6983 32 cp -a $src/docs/* $fs/usr/share/doc/docbook-xml-5.0
slaxemulator@6983 33 cp -a $src/README $fs/usr/share/doc/docbook-xml-5.0
slaxemulator@6983 34 cp -a $src/catalog.xml $fs/usr/share/xml/docbook/schema/5.0
slaxemulator@6983 35 cp -a $src/docbook.nvdl $fs/usr/share/xml/docbook/schema/5.0
slaxemulator@6983 36
slaxemulator@6983 37 }
slaxemulator@6983 38 # Pre and post install commands for Tazpkg.
slaxemulator@6983 39 post_install()
slaxemulator@6983 40 {
slaxemulator@6983 41 echo -n "Processing post-install commands..."
slaxemulator@6983 42
slaxemulator@6983 43 # Add /etc/xml/catalog
slaxemulator@6983 44 install -d -m755 $1/etc/xml
slaxemulator@6983 45 [ ! -f $1/etc/xml/catalog ] &&
slaxemulator@6983 46 xmlcatalog --noout --create $1/etc/xml/catalog
slaxemulator@6983 47
slaxemulator@6983 48 xmlcatalog --noout --add "delegatePublic" \
slaxemulator@6983 49 "-//OASIS//DTD DocBook XML 5.0//EN" \
slaxemulator@6983 50 "file:///usr/share/xml/docbook/schema/5.0/catalog.xml" \
slaxemulator@6983 51 $1/etc/xml/catalog &&
slaxemulator@6983 52 xmlcatalog --noout --add "delegateSystem" \
slaxemulator@6983 53 "http://www.oasis-open.org/docbook/xml/5.0" \
slaxemulator@6983 54 "file:///usr/share/xml/docbook/schema/5.0/catalog.xml" \
slaxemulator@6983 55 $1/etc/xml/catalog &&
slaxemulator@6983 56 xmlcatalog --noout --add "delegateSystem" \
slaxemulator@6983 57 "http://docbook.org/xml/5.0" \
slaxemulator@6983 58 "file:///usr/share/xml/docbook/schema/5.0/catalog.xml" \
slaxemulator@6983 59 $1/etc/xml/catalog &&
slaxemulator@6983 60 xmlcatalog --noout --add "delegateURI" \
slaxemulator@6983 61 "http://www.oasis-open.org/docbook/xml/5.0" \
slaxemulator@6983 62 "file:///usr/share/xml/docbook/schema/5.0/catalog.xml" \
slaxemulator@6983 63 $1/etc/xml/catalog &&
slaxemulator@6983 64 xmlcatalog --noout --add "delegateURI" \
slaxemulator@6983 65 "http://docbook.org/xml/5.0" \
slaxemulator@6983 66 "file:///usr/share/xml/docbook/schema/5.0/catalog.xml" \
slaxemulator@6983 67 $1/etc/xml/catalog
slaxemulator@6983 68 status
slaxemulator@6983 69 }
slaxemulator@6983 70