summaryrefslogtreecommitdiff
path: root/repo/devel/docbook4-xml.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-03-10 11:59:16 +0000
committerdavidovski <david@davidovski.xyz>2022-03-10 11:59:16 +0000
commitbb499959d88da1b3937c23b5405089c907188a81 (patch)
treed9ddba6d0c8f1152c3919067a52250c6bf0759f9 /repo/devel/docbook4-xml.xibuild
parent3602ce227f784f1c6233ef6ad3cd8f5ccad28e66 (diff)
added and patched broken packages
Diffstat (limited to 'repo/devel/docbook4-xml.xibuild')
-rw-r--r--repo/devel/docbook4-xml.xibuild158
1 files changed, 87 insertions, 71 deletions
diff --git a/repo/devel/docbook4-xml.xibuild b/repo/devel/docbook4-xml.xibuild
index b29b7ef..ba31b18 100644
--- a/repo/devel/docbook4-xml.xibuild
+++ b/repo/devel/docbook4-xml.xibuild
@@ -7,81 +7,97 @@ PKG_VER=4.5
SOURCE=https://www.docbook.org/xml/$PKG_VER/docbook-xml-$PKG_VER.zip
DESC="A widely used XML scheme for writing documentation and help"
+VERSIONS="4.5 4.4 4.3 4.2"
+
+ADDITIONAL="
+ https://www.docbook.org/xml/4.4/docbook-xml-4.4.zip
+ https://www.docbook.org/xml/4.3/docbook-xml-4.3.zip
+ https://www.docbook.org/xml/4.2/docbook-xml-4.2.zip
+"
+
package () {
- install -m755 -d $PKG_DEST/usr/share/xml/docbook/xml-dtd-4.5 &&
- install -m755 -d $PKG_DEST/etc/xml &&
- chown -R root:root . &&
- cp -af docbook.cat *.dtd ent/ *.mod \
- $PKG_DEST/usr/share/xml/docbook/xml-dtd-4.5
+ for v in $VERSIONS; do
+ mkdir docbook-xml-$v
+ cd docbook-xml-$v
+ unzip -o ../docbook-xml-$v.zip
+ install -m755 -d $PKG_DEST/usr/share/xml/docbook/xml-dtd-$v &&
+ install -m755 -d $PKG_DEST/etc/xml &&
+ chown -R root:root . &&
+ cp -af docbook.cat *.dtd ent/ *.mod \
+ $PKG_DEST/usr/share/xml/docbook/xml-dtd-$v
+ cd ..
+ done
}
postinstall () {
- if [ ! -e /etc/xml/docbook ]; then
- xmlcatalog --noout --create /etc/xml/docbook
- fi &&
- xmlcatalog --noout --add "public" \
- "-//OASIS//DTD DocBook XML V4.5//EN" \
- "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" \
- /etc/xml/docbook &&
- xmlcatalog --noout --add "public" \
- "-//OASIS//DTD DocBook XML CALS Table Model V4.5//EN" \
- "file:///usr/share/xml/docbook/xml-dtd-4.5/calstblx.dtd" \
- /etc/xml/docbook &&
- xmlcatalog --noout --add "public" \
- "-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
- "file:///usr/share/xml/docbook/xml-dtd-4.5/soextblx.dtd" \
- /etc/xml/docbook &&
- xmlcatalog --noout --add "public" \
- "-//OASIS//ELEMENTS DocBook XML Information Pool V4.5//EN" \
- "file:///usr/share/xml/docbook/xml-dtd-4.5/dbpoolx.mod" \
- /etc/xml/docbook &&
- xmlcatalog --noout --add "public" \
- "-//OASIS//ELEMENTS DocBook XML Document Hierarchy V4.5//EN" \
- "file:///usr/share/xml/docbook/xml-dtd-4.5/dbhierx.mod" \
- /etc/xml/docbook &&
- xmlcatalog --noout --add "public" \
- "-//OASIS//ELEMENTS DocBook XML HTML Tables V4.5//EN" \
- "file:///usr/share/xml/docbook/xml-dtd-4.5/htmltblx.mod" \
- /etc/xml/docbook &&
- xmlcatalog --noout --add "public" \
- "-//OASIS//ENTITIES DocBook XML Notations V4.5//EN" \
- "file:///usr/share/xml/docbook/xml-dtd-4.5/dbnotnx.mod" \
- /etc/xml/docbook &&
- xmlcatalog --noout --add "public" \
- "-//OASIS//ENTITIES DocBook XML Character Entities V4.5//EN" \
- "file:///usr/share/xml/docbook/xml-dtd-4.5/dbcentx.mod" \
- /etc/xml/docbook &&
- xmlcatalog --noout --add "public" \
- "-//OASIS//ENTITIES DocBook XML Additional General Entities V4.5//EN" \
- "file:///usr/share/xml/docbook/xml-dtd-4.5/dbgenent.mod" \
- /etc/xml/docbook &&
- xmlcatalog --noout --add "rewriteSystem" \
- "http://www.oasis-open.org/docbook/xml/4.5" \
- "file:///usr/share/xml/docbook/xml-dtd-4.5" \
- /etc/xml/docbook &&
- xmlcatalog --noout --add "rewriteURI" \
- "http://www.oasis-open.org/docbook/xml/4.5" \
- "file:///usr/share/xml/docbook/xml-dtd-4.5" \
- /etc/xml/docbook
- if [ ! -e /etc/xml/catalog ]; then
- xmlcatalog --noout --create /etc/xml/catalog
- fi &&
- xmlcatalog --noout --add "delegatePublic" \
- "-//OASIS//ENTITIES DocBook XML" \
- "file:///etc/xml/docbook" \
- /etc/xml/catalog &&
- xmlcatalog --noout --add "delegatePublic" \
- "-//OASIS//DTD DocBook XML" \
- "file:///etc/xml/docbook" \
- /etc/xml/catalog &&
- xmlcatalog --noout --add "delegateSystem" \
- "http://www.oasis-open.org/docbook/" \
- "file:///etc/xml/docbook" \
- /etc/xml/catalog &&
- xmlcatalog --noout --add "delegateURI" \
- "http://www.oasis-open.org/docbook/" \
- "file:///etc/xml/docbook" \
- /etc/xml/catalog
+ for v in $VERSIONS; do
+ if [ ! -e /etc/xml/docbook ]; then
+ xmlcatalog --noout --create /etc/xml/docbook
+ fi &&
+ xmlcatalog --noout --add "public" \
+ "-//OASIS//DTD DocBook XML V$v//EN" \
+ "http://www.oasis-open.org/docbook/xml/$v/docbookx.dtd" \
+ /etc/xml/docbook &&
+ xmlcatalog --noout --add "public" \
+ "-//OASIS//DTD DocBook XML CALS Table Model V$v//EN" \
+ "file:///usr/share/xml/docbook/xml-dtd-$v/calstblx.dtd" \
+ /etc/xml/docbook &&
+ xmlcatalog --noout --add "public" \
+ "-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
+ "file:///usr/share/xml/docbook/xml-dtd-$v/soextblx.dtd" \
+ /etc/xml/docbook &&
+ xmlcatalog --noout --add "public" \
+ "-//OASIS//ELEMENTS DocBook XML Information Pool V$v//EN" \
+ "file:///usr/share/xml/docbook/xml-dtd-$v/dbpoolx.mod" \
+ /etc/xml/docbook &&
+ xmlcatalog --noout --add "public" \
+ "-//OASIS//ELEMENTS DocBook XML Document Hierarchy V$v//EN" \
+ "file:///usr/share/xml/docbook/xml-dtd-$v/dbhierx.mod" \
+ /etc/xml/docbook &&
+ xmlcatalog --noout --add "public" \
+ "-//OASIS//ELEMENTS DocBook XML HTML Tables V$v//EN" \
+ "file:///usr/share/xml/docbook/xml-dtd-$v/htmltblx.mod" \
+ /etc/xml/docbook &&
+ xmlcatalog --noout --add "public" \
+ "-//OASIS//ENTITIES DocBook XML Notations V$v//EN" \
+ "file:///usr/share/xml/docbook/xml-dtd-$v/dbnotnx.mod" \
+ /etc/xml/docbook &&
+ xmlcatalog --noout --add "public" \
+ "-//OASIS//ENTITIES DocBook XML Character Entities V$v//EN" \
+ "file:///usr/share/xml/docbook/xml-dtd-$v/dbcentx.mod" \
+ /etc/xml/docbook &&
+ xmlcatalog --noout --add "public" \
+ "-//OASIS//ENTITIES DocBook XML Additional General Entities V$v//EN" \
+ "file:///usr/share/xml/docbook/xml-dtd-$v/dbgenent.mod" \
+ /etc/xml/docbook &&
+ xmlcatalog --noout --add "rewriteSystem" \
+ "http://www.oasis-open.org/docbook/xml/$v" \
+ "file:///usr/share/xml/docbook/xml-dtd-$v" \
+ /etc/xml/docbook &&
+ xmlcatalog --noout --add "rewriteURI" \
+ "http://www.oasis-open.org/docbook/xml/$v" \
+ "file:///usr/share/xml/docbook/xml-dtd-$v" \
+ /etc/xml/docbook
+ if [ ! -e /etc/xml/catalog ]; then
+ xmlcatalog --noout --create /etc/xml/catalog
+ fi &&
+ xmlcatalog --noout --add "delegatePublic" \
+ "-//OASIS//ENTITIES DocBook XML" \
+ "file:///etc/xml/docbook" \
+ /etc/xml/catalog &&
+ xmlcatalog --noout --add "delegatePublic" \
+ "-//OASIS//DTD DocBook XML" \
+ "file:///etc/xml/docbook" \
+ /etc/xml/catalog &&
+ xmlcatalog --noout --add "delegateSystem" \
+ "http://www.oasis-open.org/docbook/" \
+ "file:///etc/xml/docbook" \
+ /etc/xml/catalog &&
+ xmlcatalog --noout --add "delegateURI" \
+ "http://www.oasis-open.org/docbook/" \
+ "file:///etc/xml/docbook" \
+ /etc/xml/catalog
+ done
}