summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main/docbook-xml/APKBUILD257
-rw-r--r--main/docbook-xml/docbook-xml.post-deinstall3
-rw-r--r--main/docbook-xml/docbook-xml.post-install23
-rw-r--r--main/docbook-xml/docbook-xml.post-upgrade21
4 files changed, 304 insertions, 0 deletions
diff --git a/main/docbook-xml/APKBUILD b/main/docbook-xml/APKBUILD
new file mode 100644
index 000000000..5b62dea35
--- /dev/null
+++ b/main/docbook-xml/APKBUILD
@@ -0,0 +1,257 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=docbook-xml
+pkgver=4.5
+pkgrel=1
+pkgdesc="A widely used XML scheme for writing documentation and help"
+url="http://scrollkeeper.sourceforge.net/docbook.shtml"
+license="MIT"
+depends="libxml2"
+makedepends=
+install="$pkgname.post-install $pkgname.post-upgrade $pkgname.post-deinstall"
+source="http://www.docbook.org/xml/$pkgver/$pkgname-$pkgver.zip
+ http://www.docbook.org/xml/4.4/$pkgname-4.4.zip
+ http://www.docbook.org/xml/4.3/$pkgname-4.3.zip
+ http://www.docbook.org/xml/4.2/$pkgname-4.2.zip
+ http://www.docbook.org/xml/4.1.2/docbkx412.zip
+ "
+
+unpack() {
+ # we unpack the zip's in subdirs in build()
+ :
+}
+
+build ()
+{
+ for ver in 4.1.2 4.2 4.3 4.4 4.5; do
+ case $ver in
+ 4.1.2) _pv=412;;
+ *) _pv=$ver;;
+ esac
+ mkdir -p "$srcdir"/docbook-xml-${ver}
+ cd "$srcdir"/docbook-xml-${ver}
+ unzip "$srcdir"/docbook-xml-${_pv}.zip
+ mkdir -p "$pkgdir"/usr/share/xml/docbook/xml-dtd-${ver}
+ cp -af docbook.cat *.dtd ent/ *.mod "$pkgdir"/usr/share/xml/docbook/xml-dtd-${ver}/
+ done
+ mkdir -p "$pkgdir"/etc/xml
+ xmlcatalog --noout --create "$pkgdir"/etc/xml/docbook-xml
+ xmlcatalog --noout --add \
+ "public" \
+ "-//OASIS//DTD DocBook XML V4.1.2//EN" \
+ "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" \
+ "$pkgdir"/etc/xml/docbook-xml
+
+ xmlcatalog --noout --add "public" \
+ "-//OASIS//DTD DocBook XML CALS Table Model V4.1.2//EN" \
+ "http://www.oasis-open.org/docbook/xml/4.1.2/calstblx.dtd" \
+ "$pkgdir"/etc/xml/docbook-xml
+ xmlcatalog --noout --add "public" \
+ "-//OASIS//DTD DocBook XML CALS Table Model V4.1.2//EN" \
+ "http://www.oasis-open.org/docbook/xml/4.1.2/calstblx.dtd" \
+ "$pkgdir"/etc/xml/docbook-xml
+ xmlcatalog --noout --add "public" \
+ "-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
+ "http://www.oasis-open.org/docbook/xml/4.1.2/soextblx.dtd" \
+ "$pkgdir"/etc/xml/docbook-xml
+ xmlcatalog --noout --add "public" \
+ "-//OASIS//ELEMENTS DocBook XML Information Pool V4.1.2//EN" \
+ "http://www.oasis-open.org/docbook/xml/4.1.2/dbpoolx.mod" \
+ "$pkgdir"/etc/xml/docbook-xml
+ xmlcatalog --noout --add "public" \
+ "-//OASIS//ELEMENTS DocBook XML Document Hierarchy V4.1.2//EN" \
+ "http://www.oasis-open.org/docbook/xml/4.1.2/dbhierx.mod" \
+ "$pkgdir"/etc/xml/docbook-xml
+ xmlcatalog --noout --add "public" \
+ "-//OASIS//ENTITIES DocBook XML Additional General Entities V4.1.2//EN" \
+ "http://www.oasis-open.org/docbook/xml/4.1.2/dbgenent.mod" \
+ "$pkgdir"/etc/xml/docbook-xml
+ xmlcatalog --noout --add "public" \
+ "-//OASIS//ENTITIES DocBook XML Notations V4.1.2//EN" \
+ "http://www.oasis-open.org/docbook/xml/4.1.2/dbnotnx.mod" \
+ "$pkgdir"/etc/xml/docbook-xml
+ xmlcatalog --noout --add "public" \
+ "-//OASIS//ENTITIES DocBook XML Character Entities V4.1.2//EN" \
+ "http://www.oasis-open.org/docbook/xml/4.1.2/dbcentx.mod" \
+ "$pkgdir"/etc/xml/docbook-xml
+ xmlcatalog --noout --add "rewriteSystem" \
+ "http://www.oasis-open.org/docbook/xml/4.1.2" \
+ "file:///usr/share/xml/docbook/xml-dtd-4.1.2" \
+ "$pkgdir"/etc/xml/docbook-xml
+ xmlcatalog --noout --add "rewriteURI" \
+ "http://www.oasis-open.org/docbook/xml/4.1.2" \
+ "file:///usr/share/xml/docbook/xml-dtd-4.1.2" \
+ "$pkgdir"/etc/xml/docbook-xml
+ xmlcatalog --noout --add "public" \
+ "-//OASIS//DTD DocBook XML V4.2//EN" \
+ "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" \
+ "$pkgdir"/etc/xml/docbook-xml
+ xmlcatalog --noout --add "public" \
+ "-//OASIS//DTD DocBook CALS Table Model V4.2//EN" \
+ "http://www.oasis-open.org/docbook/xml/4.2/calstblx.dtd" \
+ "$pkgdir"/etc/xml/docbook-xml
+ xmlcatalog --noout --add "public" \
+ "-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
+ "http://www.oasis-open.org/docbook/xml/4.2/soextblx.dtd" \
+ "$pkgdir"/etc/xml/docbook-xml
+ xmlcatalog --noout --add "public" \
+ "-//OASIS//ELEMENTS DocBook Information Pool V4.2//EN" \
+ "http://www.oasis-open.org/docbook/xml/4.2/dbpoolx.mod" \
+ "$pkgdir"/etc/xml/docbook-xml
+ xmlcatalog --noout --add "public" \
+ "-//OASIS//ELEMENTS DocBook Document Hierarchy V4.2//EN" \
+ "http://www.oasis-open.org/docbook/xml/4.2/dbhierx.mod" \
+ "$pkgdir"/etc/xml/docbook-xml
+ xmlcatalog --noout --add "public" \
+ "-//OASIS//ENTITIES DocBook Additional General Entities V4.2//EN" \
+ "http://www.oasis-open.org/docbook/xml/4.2/dbgenent.mod" \
+ "$pkgdir"/etc/xml/docbook-xml
+ xmlcatalog --noout --add "public" \
+ "-//OASIS//ENTITIES DocBook Notations V4.2//EN" \
+ "http://www.oasis-open.org/docbook/xml/4.2/dbnotnx.mod" \
+ "$pkgdir"/etc/xml/docbook-xml
+ xmlcatalog --noout --add "public" \
+ "-//OASIS//ENTITIES DocBook Character Entities V4.2//EN" \
+ "http://www.oasis-open.org/docbook/xml/4.2/dbcentx.mod" \
+ "$pkgdir"/etc/xml/docbook-xml
+ xmlcatalog --noout --add "rewriteSystem" \
+ "http://www.oasis-open.org/docbook/xml/4.2" \
+ "file:///usr/share/xml/docbook/xml-dtd-4.2" \
+ "$pkgdir"/etc/xml/docbook-xml
+ xmlcatalog --noout --add "rewriteURI" \
+ "http://www.oasis-open.org/docbook/xml/4.2" \
+ "file:///usr/share/xml/docbook/xml-dtd-4.2" \
+ "$pkgdir"/etc/xml/docbook-xml
+ xmlcatalog --noout --add "public" \
+ "-//OASIS//DTD DocBook XML V4.3//EN" \
+ "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" \
+ "$pkgdir"/etc/xml/docbook-xml
+ xmlcatalog --noout --add "public" \
+ "-//OASIS//DTD DocBook CALS Table Model V4.3//EN" \
+ "http://www.oasis-open.org/docbook/xml/4.3/calstblx.dtd" \
+ "$pkgdir"/etc/xml/docbook-xml
+ xmlcatalog --noout --add "public" \
+ "-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
+ "http://www.oasis-open.org/docbook/xml/4.3/soextblx.dtd" \
+ "$pkgdir"/etc/xml/docbook-xml
+ xmlcatalog --noout --add "public" \
+ "-//OASIS//ELEMENTS DocBook Information Pool V4.3//EN" \
+ "http://www.oasis-open.org/docbook/xml/4.3/dbpoolx.mod" \
+ "$pkgdir"/etc/xml/docbook-xml
+ xmlcatalog --noout --add "public" \
+ "-//OASIS//ELEMENTS DocBook Document Hierarchy V4.3//EN" \
+ "http://www.oasis-open.org/docbook/xml/4.3/dbhierx.mod" \
+ "$pkgdir"/etc/xml/docbook-xml
+ xmlcatalog --noout --add "public" \
+ "-//OASIS//ENTITIES DocBook Additional General Entities V4.3//EN" \
+ "http://www.oasis-open.org/docbook/xml/4.3/dbgenent.mod" \
+ "$pkgdir"/etc/xml/docbook-xml
+ xmlcatalog --noout --add "public" \
+ "-//OASIS//ENTITIES DocBook Notations V4.3//EN" \
+ "http://www.oasis-open.org/docbook/xml/4.3/dbnotnx.mod" \
+ "$pkgdir"/etc/xml/docbook-xml
+ xmlcatalog --noout --add "public" \
+ "-//OASIS//ENTITIES DocBook Character Entities V4.3//EN" \
+ "http://www.oasis-open.org/docbook/xml/4.3/dbcentx.mod" \
+ "$pkgdir"/etc/xml/docbook-xml
+ xmlcatalog --noout --add "rewriteSystem" \
+ "http://www.oasis-open.org/docbook/xml/4.3" \
+ "file:///usr/share/xml/docbook/xml-dtd-4.3" \
+ "$pkgdir"/etc/xml/docbook-xml
+ xmlcatalog --noout --add "rewriteURI" \
+ "http://www.oasis-open.org/docbook/xml/4.3" \
+ "file:///usr/share/xml/docbook/xml-dtd-4.3" \
+ "$pkgdir"/etc/xml/docbook-xml
+ xmlcatalog --noout --add "public" \
+ "-//OASIS//DTD DocBook XML V4.4//EN" \
+ "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" \
+ "$pkgdir"/etc/xml/docbook-xml
+ xmlcatalog --noout --add "public" \
+ "-//OASIS//DTD DocBook CALS Table Model V4.4//EN" \
+ "http://www.oasis-open.org/docbook/xml/4.4/calstblx.dtd" \
+ "$pkgdir"/etc/xml/docbook-xml
+ xmlcatalog --noout --add "public" \
+ "-//OASIS//ELEMENTS DocBook XML HTML Tables V4.4//EN" \
+ "http://www.oasis-open.org/docbook/xml/4.4/htmltblx.mod" \
+ "$pkgdir"/etc/xml/docbook-xml
+ xmlcatalog --noout --add "public" \
+ "-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
+ "http://www.oasis-open.org/docbook/xml/4.4/soextblx.dtd" \
+ "$pkgdir"/etc/xml/docbook-xml
+ xmlcatalog --noout --add "public" \
+ "-//OASIS//ELEMENTS DocBook Information Pool V4.4//EN" \
+ "http://www.oasis-open.org/docbook/xml/4.4/dbpoolx.mod" \
+ "$pkgdir"/etc/xml/docbook-xml
+ xmlcatalog --noout --add "public" \
+ "-//OASIS//ELEMENTS DocBook Document Hierarchy V4.4//EN" \
+ "http://www.oasis-open.org/docbook/xml/4.4/dbhierx.mod" \
+ "$pkgdir"/etc/xml/docbook-xml
+ xmlcatalog --noout --add "public" \
+ "-//OASIS//ENTITIES DocBook Additional General Entities V4.4//EN" \
+ "http://www.oasis-open.org/docbook/xml/4.4/dbgenent.mod" \
+ "$pkgdir"/etc/xml/docbook-xml
+ xmlcatalog --noout --add "public" \
+ "-//OASIS//ENTITIES DocBook Notations V4.4//EN" \
+ "http://www.oasis-open.org/docbook/xml/4.4/dbnotnx.mod" \
+ "$pkgdir"/etc/xml/docbook-xml
+ xmlcatalog --noout --add "public" \
+ "-//OASIS//ENTITIES DocBook Character Entities V4.4//EN" \
+ "http://www.oasis-open.org/docbook/xml/4.4/dbcentx.mod" \
+ "$pkgdir"/etc/xml/docbook-xml
+ xmlcatalog --noout --add "rewriteSystem" \
+ "http://www.oasis-open.org/docbook/xml/4.4" \
+ "file:///usr/share/xml/docbook/xml-dtd-4.4" \
+ "$pkgdir"/etc/xml/docbook-xml
+ xmlcatalog --noout --add "rewriteURI" \
+ "http://www.oasis-open.org/docbook/xml/4.4" \
+ "file:///usr/share/xml/docbook/xml-dtd-4.4" \
+ "$pkgdir"/etc/xml/docbook-xml
+ xmlcatalog --noout --add "public" \
+ "-//OASIS//DTD DocBook XML V4.5//EN" \
+ "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" \
+ "$pkgdir"/etc/xml/docbook-xml
+ 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" \
+ "$pkgdir"/etc/xml/docbook-xml
+ xmlcatalog --noout --add "public" \
+ "-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
+ "file:///usr/share/xml/docbook/xml-dtd-4.5/soextblx.dtd" \
+ "$pkgdir"/etc/xml/docbook-xml
+ xmlcatalog --noout --add "public" \
+ "-//OASIS//ELEMENTS DocBook XML Information Pool V4.5//EN" \
+ "file:///usr/share/xml/docbook/xml-dtd-4.5/dbpoolx.mod" \
+ "$pkgdir"/etc/xml/docbook-xml
+ xmlcatalog --noout --add "public" \
+ "-//OASIS//ELEMENTS DocBook XML Document Hierarchy V4.5//EN" \
+ "file:///usr/share/xml/docbook/xml-dtd-4.5/dbhierx.mod" \
+ "$pkgdir"/etc/xml/docbook-xml
+ xmlcatalog --noout --add "public" \
+ "-//OASIS//ELEMENTS DocBook XML HTML Tables V4.5//EN" \
+ "file:///usr/share/xml/docbook/xml-dtd-4.5/htmltblx.mod" \
+ "$pkgdir"/etc/xml/docbook-xml
+ xmlcatalog --noout --add "public" \
+ "-//OASIS//ENTITIES DocBook XML Notations V4.5//EN" \
+ "file:///usr/share/xml/docbook/xml-dtd-4.5/dbnotnx.mod" \
+ "$pkgdir"/etc/xml/docbook-xml
+ xmlcatalog --noout --add "public" \
+ "-//OASIS//ENTITIES DocBook XML Character Entities V4.5//EN" \
+ "file:///usr/share/xml/docbook/xml-dtd-4.5/dbcentx.mod" \
+ "$pkgdir"/etc/xml/docbook-xml
+ 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" \
+ "$pkgdir"/etc/xml/docbook-xml
+ xmlcatalog --noout --add "rewriteSystem" \
+ "http://www.oasis-open.org/docbook/xml/4.5" \
+ "file:///usr/share/xml/docbook/xml-dtd-4.5" \
+ "$pkgdir"/etc/xml/docbook-xml
+ xmlcatalog --noout --add "rewriteURI" \
+ "http://www.oasis-open.org/docbook/xml/4.5" \
+ "file:///usr/share/xml/docbook/xml-dtd-4.5" \
+ "$pkgdir"/etc/xml/docbook-xml
+}
+md5sums="03083e288e87a7e829e437358da7ef9e docbook-xml-4.5.zip
+cbb04e9a700955d88c50962ef22c1634 docbook-xml-4.4.zip
+ab200202b9e136a144db1e0864c45074 docbook-xml-4.3.zip
+73fe50dfe74ca631c1602f558ed8961f docbook-xml-4.2.zip
+900d7609fb7e6d78901b357e4acfbc17 docbkx412.zip"
diff --git a/main/docbook-xml/docbook-xml.post-deinstall b/main/docbook-xml/docbook-xml.post-deinstall
new file mode 100644
index 000000000..925378617
--- /dev/null
+++ b/main/docbook-xml/docbook-xml.post-deinstall
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+xmlcatalog --noout --del file:///etc/xml/docbook-xml etc/xml/catalog
diff --git a/main/docbook-xml/docbook-xml.post-install b/main/docbook-xml/docbook-xml.post-install
new file mode 100644
index 000000000..fa5f2a997
--- /dev/null
+++ b/main/docbook-xml/docbook-xml.post-install
@@ -0,0 +1,23 @@
+#!/bin/sh
+
+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-xml" \
+ etc/xml/catalog
+xmlcatalog --noout --add "delegatePublic" \
+ "-//OASIS//DTD DocBook XML" \
+ "file:///etc/xml/docbook-xml" \
+ etc/xml/catalog
+xmlcatalog --noout --add "delegateSystem" \
+ "http://www.oasis-open.org/docbook/" \
+ "file:///etc/xml/docbook-xml" \
+ etc/xml/catalog
+xmlcatalog --noout --add "delegateURI" \
+ "http://www.oasis-open.org/docbook/" \
+ "file:///etc/xml/docbook-xml" \
+ etc/xml/catalog
+
diff --git a/main/docbook-xml/docbook-xml.post-upgrade b/main/docbook-xml/docbook-xml.post-upgrade
new file mode 100644
index 000000000..79bb90e7c
--- /dev/null
+++ b/main/docbook-xml/docbook-xml.post-upgrade
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+xmlcatalog --noout --del file:///etc/xml/docbook-xml etc/xml/catalog
+
+xmlcatalog --noout --add "delegatePublic" \
+ "-//OASIS//ENTITIES DocBook XML" \
+ "file:///etc/xml/docbook-xml" \
+ etc/xml/catalog
+xmlcatalog --noout --add "delegatePublic" \
+ "-//OASIS//DTD DocBook XML" \
+ "file:///etc/xml/docbook-xml" \
+ etc/xml/catalog
+xmlcatalog --noout --add "delegateSystem" \
+ "http://www.oasis-open.org/docbook/" \
+ "file:///etc/xml/docbook-xml" \
+ etc/xml/catalog
+xmlcatalog --noout --add "delegateURI" \
+ "http://www.oasis-open.org/docbook/" \
+ "file:///etc/xml/docbook-xml" \
+ etc/xml/catalog
+