blob: 82fc7567e8a9baca0b25a261f6c36e22c3ea0b78 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
|
#!/bin/bash
MAKEDEPS=()
DEPS=(libxml2)
PKG_VER=5.1
SOURCE=https://docbook.org/xml/$PKG_VER/docbook-v$PKG_VER-os.zip
DESC="A widely used XML scheme for writing documentation and help"
package () {
install -vdm755 $PKG_DEST/usr/share/xml/docbook/schema/{rng,sch}/$PKG_VER &&
install -m644 schemas/rng/* $PKG_DEST/usr/share/xml/docbook/schema/rng/$PKG_VER &&
install -m644 schemas/sch/* $PKG_DEST/usr/share/xml/docbook/schema/sch/$PKG_VER &&
install -m755 tools/db4-entities.pl $PKG_DEST/usr/bin &&
install -vdm755 $PKG_DEST/usr/share/xml/docbook/stylesheet/docbook5 &&
install -m644 tools/db4-upgrade.xsl \
$PKG_DEST/usr/share/xml/docbook/stylesheet/docbook5
mkdir -pv $PKG_DEST/etc/xml
xmlcatalog --noout --create $PKG_DEST/etc/xml/docbook-$PKG_VER &&
xmlcatalog --noout --add "uri" \
"http://www.oasis-open.org/docbook/xml/$PKG_VER/rng/docbook.rng" \
"file://usr/share/xml/docbook/schema/rng/$PKG_VER/docbook.rng" \
$PKG_DEST/etc/xml/docbook-$PKG_VER &&
xmlcatalog --noout --add "uri" \
"http://docbook.org/xml/$PKG_VER/rng/docbook.rng" \
"file:///usr/share/xml/docbook/schema/rng/$PKG_VER/docbook.rng" \
$PKG_DEST/etc/xml/docbook-$PKG_VER &&
xmlcatalog --noout --add "uri" \
"http://www.oasis-open.org/docbook/xml/$PKG_VER/rng/docbookxi.rng" \
"file:///usr/share/xml/docbook/schema/rng/$PKG_VER/docbookxi.rng" \
$PKG_DEST/etc/xml/docbook-$PKG_VER &&
xmlcatalog --noout --add "uri" \
"http://docbook.org/xml/$PKG_VER/rng/docbookxi.rng" \
"file:///usr/share/xml/docbook/schema/rng/$PKG_VER/docbookxi.rng" \
$PKG_DEST/etc/xml/docbook-$PKG_VER &&
xmlcatalog --noout --add "uri" \
"http://www.oasis-open.org/docbook/xml/$PKG_VER/rnc/docbook.rnc" \
"file:///usr/share/xml/docbook/schema/rng/$PKG_VER/docbook.rnc" \
$PKG_DEST/etc/xml/docbook-$PKG_VER &&
xmlcatalog --noout --add "uri" \
"http://docbook.org/xml/$PKG_VER/rng/docbook.rnc" \
"file:///usr/share/xml/docbook/schema/rng/$PKG_VER/docbook.rnc" \
$PKG_DEST/etc/xml/docbook-$PKG_VER &&
xmlcatalog --noout --add "uri" \
"http://www.oasis-open.org/docbook/xml/$PKG_VER/rnc/docbookxi.rnc" \
"file:///usr/share/xml/docbook/schema/rng/$PKG_VER/docbookxi.rnc" \
$PKG_DEST/etc/xml/docbook-$PKG_VER &&
xmlcatalog --noout --add "uri" \
"http://docbook.org/xml/$PKG_VER/rng/docbookxi.rnc" \
"file:///usr/share/xml/docbook/schema/rng/$PKG_VER/docbookxi.rnc" \
$PKG_DEST/etc/xml/docbook-$PKG_VER &&
xmlcatalog --noout --add "uri" \
"http://www.oasis-open.org/docbook/xml/$PKG_VER/sch/docbook.sch" \
"file:///usr/share/xml/docbook/schema/sch/$PKG_VER/docbook.sch" \
$PKG_DEST/etc/xml/docbook-$PKG_VER &&
xmlcatalog --noout --add "uri" \
"http://docbook.org/xml/$PKG_VER/sch/docbook.sch" \
"file:///usr/share/xml/docbook/schema/sch/$PKG_VER/docbook.sch" \
$PKG_DEST/etc/xml/docbook-$PKG_VER
xmlcatalog --noout --create $PKG_DEST/usr/share/xml/docbook/schema/rng/$PKG_VER/catalog.xml &&
xmlcatalog --noout --add "uri" \
"http://docbook.org/xml/$PKG_VER/schemas/rng/docbook.schemas/rng" \
"docbook.schemas/rng" $PKG_DEST/usr/share/xml/docbook/schema/rng/$PKG_VER/catalog.xml &&
xmlcatalog --noout --add "uri" \
"http://www.oasis-open.org/docbook/xml/$PKG_VER/schemas/rng/docbook.schemas/rng" \
"docbook.schemas/rng" $PKG_DEST/usr/share/xml/docbook/schema/rng/$PKG_VER/catalog.xml &&
xmlcatalog --noout --add "uri" \
"http://docbook.org/xml/$PKG_VER/schemas/rng/docbookxi.schemas/rng" \
"docbookxi.schemas/rng" $PKG_DEST/usr/share/xml/docbook/schema/rng/$PKG_VER/catalog.xml &&
xmlcatalog --noout --add "uri" \
"http://www.oasis-open.org/docbook/xml/$PKG_VER/schemas/rng/docbookxi.schemas/rng" \
"docbookxi.schemas/rng" $PKG_DEST/usr/share/xml/docbook/schema/rng/$PKG_VER/catalog.xml &&
xmlcatalog --noout --add "uri" \
"http://docbook.org/xml/$PKG_VER/schemas/rng/docbook.rnc" \
"docbook.rnc" $PKG_DEST/usr/share/xml/docbook/schema/rng/$PKG_VER/catalog.xml &&
xmlcatalog --noout --add "uri" \
"http://www.oasis-open.org/docbook/xml/$PKG_VER/schemas/rng/docbook.rnc" \
"docbook.rnc" $PKG_DEST/usr/share/xml/docbook/schema/rng/$PKG_VER/catalog.xml &&
xmlcatalog --noout --add "uri" \
"http://docbook.org/xml/$PKG_VER/schemas/rng/docbookxi.rnc" \
"docbookxi.rnc" $PKG_DEST/usr/share/xml/docbook/schema/rng/$PKG_VER/catalog.xml &&
xmlcatalog --noout --add "uri" \
"http://www.oasis-open.org/docbook/xml/$PKG_VER/schemas/rng/docbookxi.rnc" \
"docbookxi.rnc" $PKG_DEST/usr/share/xml/docbook/schema/rng/$PKG_VER/catalog.xml
xmlcatalog --noout --create $PKG_DEST/usr/share/xml/docbook/schema/sch/$PKG_VER/catalog.xml &&
xmlcatalog --noout --add "uri" \
"http://docbook.org/xml/$PKG_VER/schemas/sch/docbook.schemas/sch" \
"docbook.schemas/sch" $PKG_DEST/usr/share/xml/docbook/schema/sch/$PKG_VER/catalog.xml &&
xmlcatalog --noout --add "uri" \
"http://www.oasis-open.org/docbook/xml/$PKG_VER/schemas/sch/docbook.schemas/sch" \
"docbook.schemas/sch" $PKG_DEST/usr/share/xml/docbook/schema/sch/$PKG_VER/catalog.xml
if [ ! -e $PKG_DEST/etc/xml/catalog ]; then
xmlcatalog --noout --create $PKG_DEST/etc/xml/catalog
fi &&
xmlcatalog --noout --add "delegatePublic" \
"-//OASIS//DTD DocBook XML $PKG_VER//EN" \
"file:///usr/share/xml/docbook/schema/dtd/$PKG_VER/catalog.xml" \
$PKG_DEST/etc/xml/catalog &&
xmlcatalog --noout --add "delegateSystem" \
"http://docbook.org/xml/$PKG_VER/dtd/" \
"file:///usr/share/xml/docbook/schema/dtd/$PKG_VER/catalog.xml" \
$PKG_DEST/etc/xml/catalog &&
xmlcatalog --noout --add "delegateURI" \
"http://docbook.org/xml/$PKG_VER/dtd/" \
"file:///usr/share/xml/docbook/schema/dtd/$PKG_VER/catalog.xml" \
$PKG_DEST/etc/xml/catalog &&
xmlcatalog --noout --add "delegateURI" \
"http://docbook.org/xml/$PKG_VER/rng/" \
"file:///usr/share/xml/docbook/schema/rng/$PKG_VER/catalog.xml" \
$PKG_DEST/etc/xml/catalog &&
xmlcatalog --noout --add "delegateURI" \
"http://docbook.org/xml/$PKG_VER/sch/" \
"file:///usr/share/xml/docbook/schema/sch/$PKG_VER/catalog.xml" \
$PKG_DEST/etc/xml/catalog &&
xmlcatalog --noout --add "delegateURI" \
"http://docbook.org/xml/$PKG_VER/xsd/" \
"file:///usr/share/xml/docbook/schema/xsd/$PKG_VER/catalog.xml" \
$PKG_DEST/etc/xml/catalog
}
|