wok view docbook-xml-412/receipt @ rev 7436

Up: cache to 3.1.3.
author Christopher Rogers <slaxemulator@gmail.com>
date Mon Nov 29 05:08:22 2010 +0000 (2010-11-29)
parents
children
line source
1 # SliTaz package receipt.
3 PACKAGE="docbook-xml-412"
4 VERSION="4.1.2"
5 CATEGORY="development"
6 SHORT_DESC="General purpose XML Document Type Definition (version 4.1.2)."
7 MAINTAINER="slaxemulator@gmail.com"
8 DEPENDS="libxml2-tools libxml2"
9 BUILD_DEPENDS="unzip libxml2-tools"
10 WEB_SITE="http://www.oasis-open.org/docbook/"
11 WGET="http://www.docbook.org/xml/$VERSION/docbkx412.zip"
13 # Rules to gen a SliTaz package suitable for Tazpkg.
14 genpkg_rules()
15 {
16 TARBALL=$SOURCES_REPOSITORY/docbkx412.zip
17 mkdir -p $PACKAGE-$VERSION
18 pushd $PACKAGE-$VERSION
19 fs=$WOK/$PACKAGE/taz/$PACKAGE-$VERSION/fs
20 if [ -f $TARBALL ]; then
21 mkdir -p $fs/usr/share/xml/docbook/xml-dtd-4.1.2
22 unzip $TARBALL
23 cp -dRf docbook.cat *.dtd ent/ *.mod \
24 "$fs/usr/share/xml/docbook/xml-dtd-4.1.2/" || return 1
25 else
26 [ -L /usr/bin/wget ] && tazpkg get-install wget --forced
27 wget -O $TARBALL "$WGET"
28 mkdir -p $fs/usr/share/xml/docbook/xml-dtd-4.1.2
29 unzip $TARBALL
30 cp -dRf docbook.cat *.dtd ent/ *.mod \
31 "$fs/usr/share/xml/docbook/xml-dtd-4.1.2/" || return 1
33 fi
34 mkdir -p "$fs/etc/xml"
35 xmlcatalog --noout --create "$fs/etc/xml/docbook-xml" || return 1
37 # V4.1.2
38 xmlcatalog --noout --add "public" \
39 "-//OASIS//DTD DocBook XML V4.1.2//EN" \
40 "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" \
41 "$fs/etc/xml/docbook-xml"
43 xmlcatalog --noout --add "public" \
44 "-//OASIS//DTD DocBook XML CALS Table Model V4.1.2//EN" \
45 "http://www.oasis-open.org/docbook/xml/4.1.2/calstblx.dtd" \
46 "$fs/etc/xml/docbook-xml"
48 xmlcatalog --noout --add "public" \
49 "-//OASIS//DTD DocBook XML CALS Table Model V4.1.2//EN" \
50 "http://www.oasis-open.org/docbook/xml/4.1.2/calstblx.dtd" \
51 "$fs/etc/xml/docbook-xml"
53 xmlcatalog --noout --add "public" \
54 "-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
55 "http://www.oasis-open.org/docbook/xml/4.1.2/soextblx.dtd" \
56 "$fs/etc/xml/docbook-xml"
58 xmlcatalog --noout --add "public" \
59 "-//OASIS//ELEMENTS DocBook XML Information Pool V4.1.2//EN" \
60 "http://www.oasis-open.org/docbook/xml/4.1.2/dbpoolx.mod" \
61 "$fs/etc/xml/docbook-xml"
63 xmlcatalog --noout --add "public" \
64 "-//OASIS//ELEMENTS DocBook XML Document Hierarchy V4.1.2//EN" \
65 "http://www.oasis-open.org/docbook/xml/4.1.2/dbhierx.mod" \
66 "$fs/etc/xml/docbook-xml"
68 xmlcatalog --noout --add "public" \
69 "-//OASIS//ENTITIES DocBook XML Additional General Entities V4.1.2//EN" \
70 "http://www.oasis-open.org/docbook/xml/4.1.2/dbgenent.mod" \
71 "$fs/etc/xml/docbook-xml"
73 xmlcatalog --noout --add "public" \
74 "-//OASIS//ENTITIES DocBook XML Notations V4.1.2//EN" \
75 "http://www.oasis-open.org/docbook/xml/4.1.2/dbnotnx.mod" \
76 "$fs/etc/xml/docbook-xml"
78 xmlcatalog --noout --add "public" \
79 "-//OASIS//ENTITIES DocBook XML Character Entities V4.1.2//EN" \
80 "http://www.oasis-open.org/docbook/xml/4.1.2/dbcentx.mod" \
81 "$fs/etc/xml/docbook-xml"
83 xmlcatalog --noout --add "rewriteSystem" \
84 "http://www.oasis-open.org/docbook/xml/4.1.2" \
85 "file:///usr/share/xml/docbook/xml-dtd-4.1.2" \
86 "$fs/etc/xml/docbook-xml"
88 xmlcatalog --noout --add "rewriteURI" \
89 "http://www.oasis-open.org/docbook/xml/4.1.2" \
90 "file:///usr/share/xml/docbook/xml-dtd-4.1.2" \
91 "$fs/etc/xml/docbook-xml"
93 }