wok-next view docbook-xml/receipt @ rev 20528
Up tzdata (2018d)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Mar 24 11:10:32 2018 +0200 (2018-03-24) |
parents | 35a20e111081 |
children | a20a093a9790 |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="docbook-xml"
4 VERSION="4.5"
5 CATEGORY="development"
6 SHORT_DESC="A widely used XML scheme for writing documentation and help. (version 4.5)"
7 MAINTAINER="slaxemulator@gmail.com"
8 LICENSE="MIT"
9 WEB_SITE="http://www.oasis-open.org/docbook/"
11 TARBALL="$PACKAGE-$VERSION.zip"
12 WGET_URL="http://www.docbook.org/xml/$VERSION/$TARBALL"
14 DEPENDS="libxml2-tools libxml2 docbook-xml-412 docbook-xml-42 docbook-xml-43 \
15 docbook-xml-44"
17 compile_rules() {
18 mkdir -p $DESTDIR/usr/share/xml/docbook/xml-dtd-$VERSION
19 cp -dRf docbook.cat *.dtd ent/ *.mod \
20 $DESTDIR/usr/share/xml/docbook/xml-dtd-$VERSION
21 }
23 genpkg_rules() {
24 mkdir -p $fs
25 cp -a $install/usr $fs
26 }
28 post_install()
29 {
30 [ -d "$1/etc/xml" ] || mkdir -p "$1/etc/xml"
31 if [ -f "$1/etc/xml/docbook-xml" ]; then
32 chroot "$1/" xmlcatalog --noout /etc/xml/docbook-xml
33 else
34 chroot "$1/" xmlcatalog --noout --create /etc/xml/docbook-xml
35 fi
37 if [ "$1" ]; then
38 mv -f "$1/etc/resolv.conf" "$1/etc/recolv.conf.$$" 2>/dev/null
39 cp /etc/resolv.conf "$1/etc/resolv.conf"
40 fi
42 # V4.1.2
43 chroot "$1/" xmlcatalog --noout --add "public" \
44 "-//OASIS//DTD DocBook XML V4.1.2//EN" \
45 "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" \
46 "/etc//xml/docbook-xml"
47 chroot "$1/" xmlcatalog --noout --add "public" \
48 "-//OASIS//DTD DocBook XML CALS Table Model V4.1.2//EN" \
49 "http://www.oasis-open.org/docbook/xml/4.1.2/calstblx.dtd" \
50 "/etc/xml/docbook-xml"
51 chroot "$1/" xmlcatalog --noout --add "public" \
52 "-//OASIS//DTD DocBook XML CALS Table Model V4.1.2//EN" \
53 "http://www.oasis-open.org/docbook/xml/4.1.2/calstblx.dtd" \
54 "/etc/xml/docbook-xml"
55 chroot "$1/" xmlcatalog --noout --add "public" \
56 "-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
57 "http://www.oasis-open.org/docbook/xml/4.1.2/soextblx.dtd" \
58 "/etc/xml/docbook-xml"
59 chroot "$1/" xmlcatalog --noout --add "public" \
60 "-//OASIS//ELEMENTS DocBook XML Information Pool V4.1.2//EN" \
61 "http://www.oasis-open.org/docbook/xml/4.1.2/dbpoolx.mod" \
62 "/etc/xml/docbook-xml"
63 chroot "$1/" 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 "/etc/xml/docbook-xml"
67 chroot "$1/" xmlcatalog --noout --add "public" \
68 "-//OASIS//ENTITIES DocBook XML Additional General Entities V4.1.2//EN" \
69 "http://www.oasis-open.org/docbook/xml/4.1.2/dbgenent.mod" \
70 "/etc/xml/docbook-xml"
71 chroot "$1/" xmlcatalog --noout --add "public" \
72 "-//OASIS//ENTITIES DocBook XML Notations V4.1.2//EN" \
73 "http://www.oasis-open.org/docbook/xml/4.1.2/dbnotnx.mod" \
74 "/etc/xml/docbook-xml"
75 chroot "$1/" xmlcatalog --noout --add "public" \
76 "-//OASIS//ENTITIES DocBook XML Character Entities V4.1.2//EN" \
77 "http://www.oasis-open.org/docbook/xml/4.1.2/dbcentx.mod" \
78 "/etc/xml/docbook-xml"
79 chroot "$1/" xmlcatalog --noout --add "rewriteSystem" \
80 "http://www.oasis-open.org/docbook/xml/4.1.2" \
81 "file:///usr/share/xml/docbook/xml-dtd-4.1.2" \
82 "/etc/xml/docbook-xml"
83 chroot "$1/" xmlcatalog --noout --add "rewriteURI" \
84 "http://www.oasis-open.org/docbook/xml/4.1.2" \
85 "file:///usr/share/xml/docbook/xml-dtd-4.1.2" \
86 "/etc/xml/docbook-xml"
88 # V4.2
89 chroot "$1/" xmlcatalog --noout --add "public" \
90 "-//OASIS//DTD DocBook XML V4.2//EN" \
91 "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" \
92 "/etc/xml/docbook-xml"
93 chroot "$1/" xmlcatalog --noout --add "public" \
94 "-//OASIS//DTD DocBook CALS Table Model V4.2//EN" \
95 "http://www.oasis-open.org/docbook/xml/4.2/calstblx.dtd" \
96 "/etc/xml/docbook-xml"
97 chroot "$1/" xmlcatalog --noout --add "public" \
98 "-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
99 "http://www.oasis-open.org/docbook/xml/4.2/soextblx.dtd" \
100 "/etc/xml/docbook-xml"
101 chroot "$1/" xmlcatalog --noout --add "public" \
102 "-//OASIS//ELEMENTS DocBook Information Pool V4.2//EN" \
103 "http://www.oasis-open.org/docbook/xml/4.2/dbpoolx.mod" \
104 "/etc/xml/docbook-xml"
105 chroot "$1/" xmlcatalog --noout --add "public" \
106 "-//OASIS//ELEMENTS DocBook Document Hierarchy V4.2//EN" \
107 "http://www.oasis-open.org/docbook/xml/4.2/dbhierx.mod" \
108 "/etc/xml/docbook-xml"
109 chroot "$1/" xmlcatalog --noout --add "public" \
110 "-//OASIS//ENTITIES DocBook Additional General Entities V4.2//EN" \
111 "http://www.oasis-open.org/docbook/xml/4.2/dbgenent.mod" \
112 "/etc/xml/docbook-xml"
113 chroot "$1/" xmlcatalog --noout --add "public" \
114 "-//OASIS//ENTITIES DocBook Notations V4.2//EN" \
115 "http://www.oasis-open.org/docbook/xml/4.2/dbnotnx.mod" \
116 "/etc/xml/docbook-xml"
117 chroot "$1/" xmlcatalog --noout --add "public" \
118 "-//OASIS//ENTITIES DocBook Character Entities V4.2//EN" \
119 "http://www.oasis-open.org/docbook/xml/4.2/dbcentx.mod" \
120 "/etc/xml/docbook-xml"
121 chroot "$1/" xmlcatalog --noout --add "rewriteSystem" \
122 "http://www.oasis-open.org/docbook/xml/4.2" \
123 "file:///usr/share/xml/docbook/xml-dtd-4.2" \
124 "/etc/xml/docbook-xml"
125 chroot "$1/" xmlcatalog --noout --add "rewriteURI" \
126 "http://www.oasis-open.org/docbook/xml/4.2" \
127 "file:///usr/share/xml/docbook/xml-dtd-4.2" \
128 "/etc/xml/docbook-xml"
130 # V4.3
131 chroot "$1/" xmlcatalog --noout --add "public" \
132 "-//OASIS//DTD DocBook XML V4.3//EN" \
133 "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" \
134 "/etc/xml/docbook-xml"
135 chroot "$1/" xmlcatalog --noout --add "public" \
136 "-//OASIS//DTD DocBook CALS Table Model V4.3//EN" \
137 "http://www.oasis-open.org/docbook/xml/4.3/calstblx.dtd" \
138 "/etc/xml/docbook-xml"
139 chroot "$1/" xmlcatalog --noout --add "public" \
140 "-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
141 "http://www.oasis-open.org/docbook/xml/4.3/soextblx.dtd" \
142 "/etc/xml/docbook-xml"
143 chroot "$1/" xmlcatalog --noout --add "public" \
144 "-//OASIS//ELEMENTS DocBook Information Pool V4.3//EN" \
145 "http://www.oasis-open.org/docbook/xml/4.3/dbpoolx.mod" \
146 "/etc/xml/docbook-xml"
147 chroot "$1/" xmlcatalog --noout --add "public" \
148 "-//OASIS//ELEMENTS DocBook Document Hierarchy V4.3//EN" \
149 "http://www.oasis-open.org/docbook/xml/4.3/dbhierx.mod" \
150 "/etc/xml/docbook-xml"
151 chroot "$1/" xmlcatalog --noout --add "public" \
152 "-//OASIS//ENTITIES DocBook Additional General Entities V4.3//EN" \
153 "http://www.oasis-open.org/docbook/xml/4.3/dbgenent.mod" \
154 "/etc/xml/docbook-xml"
155 chroot "$1/" xmlcatalog --noout --add "public" \
156 "-//OASIS//ENTITIES DocBook Notations V4.3//EN" \
157 "http://www.oasis-open.org/docbook/xml/4.3/dbnotnx.mod" \
158 "/etc/xml/docbook-xml"
159 chroot "$1/" xmlcatalog --noout --add "public" \
160 "-//OASIS//ENTITIES DocBook Character Entities V4.3//EN" \
161 "http://www.oasis-open.org/docbook/xml/4.3/dbcentx.mod" \
162 "/etc/xml/docbook-xml"
163 chroot "$1/" xmlcatalog --noout --add "rewriteSystem" \
164 "http://www.oasis-open.org/docbook/xml/4.3" \
165 "file:///usr/share/xml/docbook/xml-dtd-4.3" \
166 "/etc/xml/docbook-xml"
167 chroot "$1/" xmlcatalog --noout --add "rewriteURI" \
168 "http://www.oasis-open.org/docbook/xml/4.3" \
169 "file:///usr/share/xml/docbook/xml-dtd-4.3" \
170 "/etc/xml/docbook-xml"
172 # V4.4
173 chroot "$1/" xmlcatalog --noout --add "public" \
174 "-//OASIS//DTD DocBook XML V4.4//EN" \
175 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" \
176 "/etc/xml/docbook-xml"
177 chroot "$1/" xmlcatalog --noout --add "public" \
178 "-//OASIS//DTD DocBook CALS Table Model V4.4//EN" \
179 "http://www.oasis-open.org/docbook/xml/4.4/calstblx.dtd" \
180 "/etc/xml/docbook-xml"
181 chroot "$1/" xmlcatalog --noout --add "public" \
182 "-//OASIS//ELEMENTS DocBook XML HTML Tables V4.4//EN" \
183 "http://www.oasis-open.org/docbook/xml/4.4/htmltblx.mod" \
184 "/etc/xml/docbook-xml"
185 chroot "$1/" xmlcatalog --noout --add "public" \
186 "-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
187 "http://www.oasis-open.org/docbook/xml/4.4/soextblx.dtd" \
188 "/etc/xml/docbook-xml"
189 chroot "$1/" xmlcatalog --noout --add "public" \
190 "-//OASIS//ELEMENTS DocBook Information Pool V4.4//EN" \
191 "http://www.oasis-open.org/docbook/xml/4.4/dbpoolx.mod" \
192 "/etc/xml/docbook-xml"
193 chroot "$1/" xmlcatalog --noout --add "public" \
194 "-//OASIS//ELEMENTS DocBook Document Hierarchy V4.4//EN" \
195 "http://www.oasis-open.org/docbook/xml/4.4/dbhierx.mod" \
196 "/etc/xml/docbook-xml"
197 chroot "$1/" xmlcatalog --noout --add "public" \
198 "-//OASIS//ENTITIES DocBook Additional General Entities V4.4//EN" \
199 "http://www.oasis-open.org/docbook/xml/4.4/dbgenent.mod" \
200 "/etc/xml/docbook-xml"
201 chroot "$1/" xmlcatalog --noout --add "public" \
202 "-//OASIS//ENTITIES DocBook Notations V4.4//EN" \
203 "http://www.oasis-open.org/docbook/xml/4.4/dbnotnx.mod" \
204 "/etc/xml/docbook-xml"
205 chroot "$1/" xmlcatalog --noout --add "public" \
206 "-//OASIS//ENTITIES DocBook Character Entities V4.4//EN" \
207 "http://www.oasis-open.org/docbook/xml/4.4/dbcentx.mod" \
208 "/etc/xml/docbook-xml"
209 chroot "$1/" xmlcatalog --noout --add "rewriteSystem" \
210 "http://www.oasis-open.org/docbook/xml/4.4" \
211 "file:///usr/share/xml/docbook/xml-dtd-4.4" \
212 "/etc/xml/docbook-xml"
213 chroot "$1/" xmlcatalog --noout --add "rewriteURI" \
214 "http://www.oasis-open.org/docbook/xml/4.4" \
215 "file:///usr/share/xml/docbook/xml-dtd-4.4" \
216 "/etc/xml/docbook-xml"
218 # V4.5
219 chroot "$1/" xmlcatalog --noout --add "public" \
220 "-//OASIS//DTD DocBook XML V4.5//EN" \
221 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" \
222 "/etc/xml/docbook-xml"
223 chroot "$1/" xmlcatalog --noout --add "public" \
224 "-//OASIS//DTD DocBook XML CALS Table Model V4.5//EN" \
225 "file:///usr/share/xml/docbook/xml-dtd-4.5/calstblx.dtd" \
226 "/etc/xml/docbook-xml"
227 chroot "$1/" xmlcatalog --noout --add "public" \
228 "-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
229 "file:///usr/share/xml/docbook/xml-dtd-4.5/soextblx.dtd" \
230 "/etc/xml/docbook-xml"
231 chroot "$1/" xmlcatalog --noout --add "public" \
232 "-//OASIS//ELEMENTS DocBook XML Information Pool V4.5//EN" \
233 "file:///usr/share/xml/docbook/xml-dtd-4.5/dbpoolx.mod" \
234 "/etc/xml/docbook-xml"
235 chroot "$1/" xmlcatalog --noout --add "public" \
236 "-//OASIS//ELEMENTS DocBook XML Document Hierarchy V4.5//EN" \
237 "file:///usr/share/xml/docbook/xml-dtd-4.5/dbhierx.mod" \
238 "/etc/xml/docbook-xml"
239 chroot "$1/" xmlcatalog --noout --add "public" \
240 "-//OASIS//ELEMENTS DocBook XML HTML Tables V4.5//EN" \
241 "file:///usr/share/xml/docbook/xml-dtd-4.5/htmltblx.mod" \
242 "/etc/xml/docbook-xml"
243 chroot "$1/" xmlcatalog --noout --add "public" \
244 "-//OASIS//ENTITIES DocBook XML Notations V4.5//EN" \
245 "file:///usr/share/xml/docbook/xml-dtd-4.5/dbnotnx.mod" \
246 "/etc/xml/docbook-xml"
247 chroot "$1/" xmlcatalog --noout --add "public" \
248 "-//OASIS//ENTITIES DocBook XML Character Entities V4.5//EN" \
249 "file:///usr/share/xml/docbook/xml-dtd-4.5/dbcentx.mod" \
250 "/etc/xml/docbook-xml"
251 chroot "$1/" xmlcatalog --noout --add "public" \
252 "-//OASIS//ENTITIES DocBook XML Additional General Entities V4.5//EN" \
253 "file:///usr/share/xml/docbook/xml-dtd-4.5/dbgenent.mod" \
254 "/etc/xml/docbook-xml"
255 chroot "$1/" xmlcatalog --noout --add "rewriteSystem" \
256 "http://www.oasis-open.org/docbook/xml/4.5" \
257 "file:///usr/share/xml/docbook/xml-dtd-4.5" \
258 "/etc/xml/docbook-xml"
259 chroot "$1/" xmlcatalog --noout --add "rewriteURI" \
260 "http://www.oasis-open.org/docbook/xml/4.5" \
261 "file:///usr/share/xml/docbook/xml-dtd-4.5" \
262 "/etc/xml/docbook-xml"
264 if [ -f "$1/etc/xml/catalog" ]; then
265 chroot "$1/" xmlcatalog --noout /etc/xml/catalog
266 else
267 chroot "$1/" xmlcatalog --noout --create /etc/xml/catalog
268 fi
270 chroot "$1/" xmlcatalog --noout --add "delegatePublic" \
271 "-//OASIS//ENTITIES DocBook XML" \
272 "file:///etc/xml/docbook-xml" \
273 "/etc/xml/catalog"
274 chroot "$1/" xmlcatalog --noout --add "delegatePublic" \
275 "-//OASIS//DTD DocBook XML" \
276 "file:///etc/xml/docbook-xml" \
277 "/etc/xml/catalog"
278 chroot "$1/" xmlcatalog --noout --add "delegateSystem" \
279 "http://www.oasis-open.org/docbook/" \
280 "file:///etc/xml/docbook-xml" \
281 "/etc/xml/catalog"
282 chroot "$1/" xmlcatalog --noout --add "delegateURI" \
283 "http://www.oasis-open.org/docbook/" \
284 "file:///etc/xml/docbook-xml" \
285 "/etc/xml/catalog"
286 if [ -n "$1" ]; then
287 mv -f "$1/etc/resolv.conf.$$" "$1/etc/recolv.conf" 2>/dev/null
288 fi
289 }
291 post_remove() {
292 xmlcatalog --noout --del file:///etc/xml/docbook-xml "$1/etc/xml/catalog"
293 }