wok-6.x annotate docbook-xml/receipt @ rev 20075

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