wok view docbook-xml/receipt @ rev 8105
Up: slitaz-boot-scripts to 3.4.3.1.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sun Jan 23 01:07:18 2011 +0000 (2011-01-23) |
parents | 086402ab7a61 |
children | b01f45f72f9c |
line source
1 # SliTaz package receipt.
3 PACKAGE="docbook-xml"
4 VERSION="4.5"
5 CATEGORY="development"
6 SHORT_DESC="General purpose XML Document Type Definition."
7 MAINTAINER="paul@slitaz.org"
8 DEPENDS="libxml2-tools libxml2"
9 BUILD_DEPENDS="$DEPENDS unzip"
10 SOURCE="docbook"
11 TARBALL="$PACKAGE-$VERSION.zip"
12 WEB_SITE="http://www.docbook.org/"
13 WGET="http://www.docbook.org/xml/$VERSION/$TARBALL"
15 # Rules to gen a SliTaz package suitable for Tazpkg.
16 genpkg_rules()
17 {
18 if [ -f $SOURCES_REPOSITORY/$TARBALL ]; then
19 mkdir -p $src && unzip $SOURCES_REPOSITORY/$TARBALL -d $src
20 else
21 wget -O $SOURCES_REPOSITORY/$TARBALL $WGET
22 mkdir -p $src && unzip $SOURCES_REPOSITORY/$TARBALL -d $src
23 fi
25 #cd $src
26 install -v -d -m755 $fs/usr/share/xml/docbook/xml-dtd-$VERSION &&
27 install -v -d -m755 $fs/etc/xml &&
28 chown -R root:root . &&
29 cp -v -af $src/docbook.cat $src/*.dtd $src/ent/ $src/*.mod \
30 $fs/usr/share/xml/docbook/xml-dtd-$VERSION
33 xmlcatalog --noout --create $fs/etc/xml/docbook
34 xmlcatalog --noout --create $fs/etc/xml/catalog
36 for DTDVERSION in 4.1.2 4.2 4.3 4.4
37 do
38 xmlcatalog --noout --add "public" \
39 "-//OASIS//DTD DocBook XML V$DTDVERSION//EN" \
40 "http://www.oasis-open.org/docbook/xml/$DTDVERSION/docbookx.dtd" \
41 $fs/etc/xml/docbook
42 xmlcatalog --noout --add "rewriteSystem" \
43 "http://www.oasis-open.org/docbook/xml/$DTDVERSION" \
44 "file:///usr/share/xml/docbook/xml-dtd-$VERSION" \
45 $fs/etc/xml/docbook
46 xmlcatalog --noout --add "rewriteURI" \
47 "http://www.oasis-open.org/docbook/xml/$DTDVERSION" \
48 "file:///usr/share/xml/docbook/xml-dtd-$VERSION" \
49 $fs/etc/xml/docbook
50 xmlcatalog --noout --add "delegateSystem" \
51 "http://www.oasis-open.org/docbook/xml/$DTDVERSION/" \
52 "file:///etc/xml/docbook" \
53 $fs/etc/xml/catalog
54 xmlcatalog --noout --add "delegateURI" \
55 "http://www.oasis-open.org/docbook/xml/$DTDVERSION/" \
56 "file:///etc/xml/docbook" \
57 $fs/etc/xml/catalog
58 done
61 }
63 # Pre and post install commands for Tazpkg.
64 post_install()
65 {
66 echo -n "Processing post-install commands..."
68 # Add /etc/xml/docbook
69 install -d -m755 $1/etc/xml
70 if [ ! -e /etc/xml/docbook ]; then
71 xmlcatalog --noout --create $1/etc/xml/docbook
72 fi &&
73 xmlcatalog --noout --add "public" \
74 "-//OASIS//DTD DocBook XML V4.5//EN" \
75 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" \
76 $1/etc/xml/docbook &&
77 xmlcatalog --noout --add "public" \
78 "-//OASIS//DTD DocBook XML CALS Table Model V4.5//EN" \
79 "file:///usr/share/xml/docbook/xml-dtd-4.5/calstblx.dtd" \
80 $1/etc/xml/docbook &&
81 xmlcatalog --noout --add "public" \
82 "-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
83 "file:///usr/share/xml/docbook/xml-dtd-4.5/soextblx.dtd" \
84 $1/etc/xml/docbook &&
85 xmlcatalog --noout --add "public" \
86 "-//OASIS//ELEMENTS DocBook XML Information Pool V4.5//EN" \
87 "file:///usr/share/xml/docbook/xml-dtd-4.5/dbpoolx.mod" \
88 $1/etc/xml/docbook &&
89 xmlcatalog --noout --add "public" \
90 "-//OASIS//ELEMENTS DocBook XML Document Hierarchy V4.5//EN" \
91 "file:///usr/share/xml/docbook/xml-dtd-4.5/dbhierx.mod" \
92 $1/etc/xml/docbook &&
93 xmlcatalog --noout --add "public" \
94 "-//OASIS//ELEMENTS DocBook XML HTML Tables V4.5//EN" \
95 "file:///usr/share/xml/docbook/xml-dtd-4.5/htmltblx.mod" \
96 $1/etc/xml/docbook &&
97 xmlcatalog --noout --add "public" \
98 "-//OASIS//ENTITIES DocBook XML Notations V4.5//EN" \
99 "file:///usr/share/xml/docbook/xml-dtd-4.5/dbnotnx.mod" \
100 $1/etc/xml/docbook &&
101 xmlcatalog --noout --add "public" \
102 "-//OASIS//ENTITIES DocBook XML Character Entities V4.5//EN" \
103 "file:///usr/share/xml/docbook/xml-dtd-4.5/dbcentx.mod" \
104 $1/etc/xml/docbook &&
105 xmlcatalog --noout --add "public" \
106 "-//OASIS//ENTITIES DocBook XML Additional General Entities V4.5//EN" \
107 "file:///usr/share/xml/docbook/xml-dtd-4.5/dbgenent.mod" \
108 $1/etc/xml/docbook &&
109 xmlcatalog --noout --add "rewriteSystem" \
110 "http://www.oasis-open.org/docbook/xml/4.5" \
111 "file:///usr/share/xml/docbook/xml-dtd-4.5" \
112 $1/etc/xml/docbook &&
113 xmlcatalog --noout --add "rewriteURI" \
114 "http://www.oasis-open.org/docbook/xml/4.5" \
115 "file:///usr/share/xml/docbook/xml-dtd-4.5" \
116 $1/etc/xml/docbook
117 status
118 }