summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Rauch2018-01-29 02:18:18 +0100
committerHolger Rauch2018-01-29 02:18:18 +0100
commitc63b4838bbf00d23e67d6858bfa7e0c7719c4210 (patch)
tree4ddab970e674bb2e9ca6ddb4f9a5e1cf28c670f9
parentae4d18e8524dead38507e1f5f0772a884e472771 (diff)
downloadaur-c63b4838bbf00d23e67d6858bfa7e0c7719c4210.tar.gz
bumped version to 5.1 (has become an OASIS standard in the mean time)
-rw-r--r--.SRCINFO13
-rw-r--r--.gitignore23
-rw-r--r--PKGBUILD191
-rw-r--r--docbook5-schemas.install4
4 files changed, 129 insertions, 102 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 64b4b9a50ab..7c9165385d7 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,17 +1,16 @@
-# Generated by mksrcinfo v8
-# Mon Jan 11 06:51:19 UTC 2016
pkgbase = docbook5-schemas
pkgdesc = Norman Walsh's schemas (DTD, Relax NG, W3C schema) for Docbook 5.X
- pkgver = 5.0
- pkgrel = 1
- url = http://www.oasis-open.org/docbook/
+ pkgver = 5.1
+ pkgrel = 2
+ url = http://docs.oasis-open.org/docbook/docbook/v5.1/os/docbook-v5.1-os.html
install = docbook5-schemas.install
arch = any
license = PublicDomain
makedepends = unzip
depends = libxml2
- source = http://docbook.org/xml/5.0/docbook-5.0.zip
- sha256sums = 3dcd65e1f5d9c0c891b3be204fa2bb418ce485d32310e1ca052e81d36623208e
+ source = http://docs.oasis-open.org/docbook/docbook/v5.1/os/docbook-v5.1-os.zip
+ sha256sums = b3f3413654003c1e773360d7fc60ebb8abd0e8c9af8e7d6c4b55f124f34d1e7f
+ sha512sums = b55f8eda4dcff9d4ebd31876bc33c244ef3884afc167da1425531266963ba64000fbe619ec7c049ae65c0aab864a5a7228caef08b53f546e2686296d97190873
pkgname = docbook5-schemas
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..29d072f7670
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,23 @@
+# package src/pkg archives, downloaded sources
+*.tar*
+*.tgz
+*.txz
+*.tbz2
+*.tgz
+*.zip
+
+# signed sources
+*.asc
+*.sig
+
+# subfolders, e.g. source or built package trees, vcs
+*/**/
+src/
+pkg/
+
+# backup files
+*~
+*.bak
+
+# mkpkg status files, from soyuz.archlinux.org
+.mkpkg_check
diff --git a/PKGBUILD b/PKGBUILD
index e99c579f071..6c34fdb860b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,40 +1,44 @@
# Maintainer: Andy Weidenbaum <archbaum@gmail.com>
+# Contributor: Holger Rauch < holger dot rauch at posteo dot de >
# based on CentOS 7 rpm
-# http://pkgs.org/centos-7/centos-x86_64/docbook5-schemas-5.0-10.el7.noarch.rpm.html
+# http://pkgs.org/centos-7/centos-x86_64/docbook5-schemas-5.1-10.el7.noarch.rpm.html
+# hrauch: 5.1 has become an OASIS standard (hence the 'os' in the filename)
+# in the meantime
pkgname=docbook5-schemas
-pkgver=5.0
-pkgrel=1
+pkgver=5.1
+pkgrel=2
pkgdesc="Norman Walsh's schemas (DTD, Relax NG, W3C schema) for Docbook 5.X"
arch=('any')
depends=('libxml2')
makedepends=('unzip')
-url="http://www.oasis-open.org/docbook/"
+url="http://docs.oasis-open.org/docbook/docbook/v5.1/os/docbook-v5.1-os.html"
license=('PublicDomain')
-source=(http://docbook.org/xml/5.0/docbook-5.0.zip)
-sha256sums=('3dcd65e1f5d9c0c891b3be204fa2bb418ce485d32310e1ca052e81d36623208e')
+source=(http://docs.oasis-open.org/docbook/docbook/v${pkgver}/os/docbook-v${pkgver}-os.zip)
+sha256sums=('b3f3413654003c1e773360d7fc60ebb8abd0e8c9af8e7d6c4b55f124f34d1e7f')
+sha512sums=('b55f8eda4dcff9d4ebd31876bc33c244ef3884afc167da1425531266963ba64000fbe619ec7c049ae65c0aab864a5a7228caef08b53f546e2686296d97190873')
install=docbook5-schemas.install
_datadir=/usr/share
build() {
- cd "$srcdir/docbook-5.0"
+ cd "$srcdir"
_catalog=docbook-5.xml
xmlcatalog --create --noout ${_catalog}
- for v in 5.0; do
+ for v in ${pkgver}; do
# DTD
- xmlcatalog --noout --add "public" \
- "-//OASIS//DTD DocBook XML ${v}//EN" \
- "file://${_datadir}/xml/docbook5/schema/dtd/${v}/docbook.dtd" ${_catalog}
- xmlcatalog --noout --add "system" \
- "http://www.oasis-open.org/docbook/xml/${v}/dtd/docbook.dtd" \
- "file://${_datadir}/xml/docbook5/schema/dtd/${v}/docbook.dtd" ${_catalog}
- xmlcatalog --noout --add "system" \
- "http://docbook.org/xml/${v}/dtd/docbook.dtd" \
- "file://${_datadir}/xml/docbook5/schema/dtd/${v}/docbook.dtd" ${_catalog}
+# xmlcatalog --noout --add "public" \
+# "-//OASIS//DTD DocBook XML ${v}//EN" \
+# "file://${_datadir}/xml/docbook5/schema/dtd/${v}/docbook.dtd" ${_catalog}
+# xmlcatalog --noout --add "system" \
+# "http://www.oasis-open.org/docbook/xml/${v}/dtd/docbook.dtd" \
+# "file://${_datadir}/xml/docbook5/schema/dtd/${v}/docbook.dtd" ${_catalog}
+# xmlcatalog --noout --add "system" \
+# "http://docbook.org/xml/${v}/dtd/docbook.dtd" \
+# "file://${_datadir}/xml/docbook5/schema/dtd/${v}/docbook.dtd" ${_catalog}
# RNG
xmlcatalog --noout --add "uri" \
"http://www.oasis-open.org/docbook/xml/${v}/rng/docbook.rng" \
@@ -64,38 +68,38 @@ build() {
"http://docbook.org/xml/${v}/rng/docbookxi.rnc" \
"file://${_datadir}/xml/docbook5/schema/rng/${v}/docbookxi.rnc" ${_catalog}
# XSD
- xmlcatalog --noout --add "uri" \
- "http://www.oasis-open.org/docbook/xml/${v}/xsd/docbook.xsd" \
- "file://${_datadir}/xml/docbook5/schema/xsd/${v}/docbook.xsd" ${_catalog}
- xmlcatalog --noout --add "uri" \
- "http://docbook.org/xml/${v}/xsd/docbook.xsd" \
- "file://${_datadir}/xml/docbook5/schema/xsd/${v}/docbook.xsd" ${_catalog}
+# xmlcatalog --noout --add "uri" \
+# "http://www.oasis-open.org/docbook/xml/${v}/xsd/docbook.xsd" \
+# "file://${_datadir}/xml/docbook5/schema/xsd/${v}/docbook.xsd" ${_catalog}
+# xmlcatalog --noout --add "uri" \
+# "http://docbook.org/xml/${v}/xsd/docbook.xsd" \
+# "file://${_datadir}/xml/docbook5/schema/xsd/${v}/docbook.xsd" ${_catalog}
# XSD + XInclude
- xmlcatalog --noout --add "uri" \
- "http://www.oasis-open.org/docbook/xml/${v}/xsd/docbookxi.xsd" \
- "file://${_datadir}/xml/docbook5/schema/xsd/${v}/docbookxi.xsd" ${_catalog}
- xmlcatalog --noout --add "uri" \
- "http://docbook.org/xml/${v}/xsd/docbookxi.xsd" \
- "file://${_datadir}/xml/docbook5/schema/xsd/${v}/docbookxi.xsd" ${_catalog}
- xmlcatalog --noout --add "uri" \
- "http://www.oasis-open.org/docbook/xml/${v}/xsd/xi.xsd" \
- "file://${_datadir}/xml/docbook5/schema/xsd/${v}/xi.xsd" ${_catalog}
- xmlcatalog --noout --add "uri" \
- "http://docbook.org/xml/${v}/xsd/xi.xsd" \
- "file://${_datadir}/xml/docbook5/schema/xsd/${v}/xi.xsd" ${_catalog}
+# xmlcatalog --noout --add "uri" \
+# "http://www.oasis-open.org/docbook/xml/${v}/xsd/docbookxi.xsd" \
+# "file://${_datadir}/xml/docbook5/schema/xsd/${v}/docbookxi.xsd" ${_catalog}
+# xmlcatalog --noout --add "uri" \
+# "http://docbook.org/xml/${v}/xsd/docbookxi.xsd" \
+# "file://${_datadir}/xml/docbook5/schema/xsd/${v}/docbookxi.xsd" ${_catalog}
+# xmlcatalog --noout --add "uri" \
+# "http://www.oasis-open.org/docbook/xml/${v}/xsd/xi.xsd" \
+# "file://${_datadir}/xml/docbook5/schema/xsd/${v}/xi.xsd" ${_catalog}
+# xmlcatalog --noout --add "uri" \
+# "http://docbook.org/xml/${v}/xsd/xi.xsd" \
+# "file://${_datadir}/xml/docbook5/schema/xsd/${v}/xi.xsd" ${_catalog}
# XLink + XML
- xmlcatalog --noout --add "uri" \
- "http://www.oasis-open.org/docbook/xml/${v}/xsd/xlink.xsd" \
- "file://${_datadir}/xml/docbook5/schema/xsd/${v}/xlink.xsd" ${_catalog}
- xmlcatalog --noout --add "uri" \
- "http://docbook.org/xml/${v}/xsd/xlink.xsd" \
- "file://${_datadir}/xml/docbook5/schema/xsd/${v}/xlink.xsd" ${_catalog}
- xmlcatalog --noout --add "uri" \
- "http://www.oasis-open.org/docbook/xml/${v}/xsd/xml.xsd" \
- "file://${_datadir}/xml/docbook5/schema/xsd/${v}/xml.xsd" ${_catalog}
- xmlcatalog --noout --add "uri" \
- "http://docbook.org/xml/${v}/xsd/xml.xsd" \
- "file://${_datadir}/xml/docbook5/schema/xsd/${v}/xml.xsd" ${_catalog}
+# xmlcatalog --noout --add "uri" \
+# "http://www.oasis-open.org/docbook/xml/${v}/xsd/xlink.xsd" \
+# "file://${_datadir}/xml/docbook5/schema/xsd/${v}/xlink.xsd" ${_catalog}
+# xmlcatalog --noout --add "uri" \
+# "http://docbook.org/xml/${v}/xsd/xlink.xsd" \
+# "file://${_datadir}/xml/docbook5/schema/xsd/${v}/xlink.xsd" ${_catalog}
+# xmlcatalog --noout --add "uri" \
+# "http://www.oasis-open.org/docbook/xml/${v}/xsd/xml.xsd" \
+# "file://${_datadir}/xml/docbook5/schema/xsd/${v}/xml.xsd" ${_catalog}
+# xmlcatalog --noout --add "uri" \
+# "http://docbook.org/xml/${v}/xsd/xml.xsd" \
+# "file://${_datadir}/xml/docbook5/schema/xsd/${v}/xml.xsd" ${_catalog}
# Schematron
xmlcatalog --noout --add "uri" \
"http://www.oasis-open.org/docbook/xml/${v}/sch/docbook.sch" \
@@ -107,19 +111,20 @@ build() {
# ---------------------
# Build XML catalog files for each Schema
- for v in 5.0; do
- for s in dtd rng sch xsd; do
+ for v in ${pkgver}; do
+# for s in dtd rng sch xsd; do
+ for s in schemas/rng schemas/sch; do
_schema_catalog=${s}/catalog.xml
xmlcatalog --noout --create ${_schema_catalog}
case $s in
- dtd)
- xmlcatalog --noout --add "public" \
- "-//OASIS//DTD DocBook XML ${v}//EN" \
- "docbook.dtd" ${_schema_catalog}
- xmlcatalog --noout --add "system" \
- "http://www.oasis-open.org/docbook/xml/${v}/dtd/docbook.dtd" \
- "docbook.dtd" ${_schema_catalog}
- ;;
+# dtd)
+# xmlcatalog --noout --add "public" \
+# "-//OASIS//DTD DocBook XML ${v}//EN" \
+# "docbook.dtd" ${_schema_catalog}
+# xmlcatalog --noout --add "system" \
+# "http://www.oasis-open.org/docbook/xml/${v}/dtd/docbook.dtd" \
+# "docbook.dtd" ${_schema_catalog}
+# ;;
sch)
xmlcatalog --noout --add "uri" \
"http://docbook.org/xml/${v}/${s}/docbook.${s}" \
@@ -154,53 +159,53 @@ build() {
"http://www.oasis-open.org/docbook/xml/${v}/${s}/docbookxi.rnc" \
"docbookxi.rnc" ${_schema_catalog}
;;
- xsd)
- # http://www.oasis-open.org/docbook/xml/5.0/xsd/docbookxi.xsd
- # http://www.oasis-open.org/docbook/xml/5.0/xsd/xlink.xsd
- xmlcatalog --noout --add "uri" \
- "http://docbook.org/xml/${v}/${s}/docbook.${s}" \
- "docbook.${s}" ${_schema_catalog}
- xmlcatalog --noout --add "uri" \
- "http://www.oasis-open.org/docbook/xml/${v}/${s}/docbook.${s}" \
- "docbook.${s}" ${_schema_catalog}
- xmlcatalog --noout --add "uri" \
- "http://docbook.org/xml/${v}/${s}/docbookxi.${s}" \
- "docbookxi.${s}" ${_schema_catalog}
- xmlcatalog --noout --add "uri" \
- "http://www.oasis-open.org/docbook/xml/${v}/${s}/docbookxi.${s}" \
- "docbookxi.${s}" ${_schema_catalog}
+# xsd)
+# # http://www.oasis-open.org/docbook/xml/5.1/xsd/docbookxi.xsd
+# # http://www.oasis-open.org/docbook/xml/5.1/xsd/xlink.xsd
+# xmlcatalog --noout --add "uri" \
+# "http://docbook.org/xml/${v}/${s}/docbook.${s}" \
+# "docbook.${s}" ${_schema_catalog}
+# xmlcatalog --noout --add "uri" \
+# "http://www.oasis-open.org/docbook/xml/${v}/${s}/docbook.${s}" \
+# "docbook.${s}" ${_schema_catalog}
+# xmlcatalog --noout --add "uri" \
+# "http://docbook.org/xml/${v}/${s}/docbookxi.${s}" \
+# "docbookxi.${s}" ${_schema_catalog}
+# xmlcatalog --noout --add "uri" \
+# "http://www.oasis-open.org/docbook/xml/${v}/${s}/docbookxi.${s}" \
+# "docbookxi.${s}" ${_schema_catalog}
# XLink + XML:
- xmlcatalog --noout --add "uri" \
- "http://docbook.org/xml/${v}/${s}/xlink.xsd" \
- "xlink.xsd" ${_schema_catalog}
- xmlcatalog --noout --add "uri" \
- "http://www.oasis-open.org/docbook/xml/${v}/${s}/xlink.xsd" \
- "xlink.xsd" ${_schema_catalog}
- xmlcatalog --noout --add "uri" \
- "http://docbook.org/xml/${v}/${s}/xml.xsd" \
- "xml.xsd" ${_schema_catalog}
- xmlcatalog --noout --add "uri" \
- "http://www.oasis-open.org/docbook/xml/${v}/${s}/xml.xsd" \
- "xml.xsd" ${_schema_catalog}
- ;;
+# xmlcatalog --noout --add "uri" \
+# "http://docbook.org/xml/${v}/${s}/xlink.xsd" \
+# "xlink.xsd" ${_schema_catalog}
+# xmlcatalog --noout --add "uri" \
+# "http://www.oasis-open.org/docbook/xml/${v}/${s}/xlink.xsd" \
+# "xlink.xsd" ${_schema_catalog}
+# xmlcatalog --noout --add "uri" \
+# "http://docbook.org/xml/${v}/${s}/xml.xsd" \
+# "xml.xsd" ${_schema_catalog}
+# xmlcatalog --noout --add "uri" \
+# "http://www.oasis-open.org/docbook/xml/${v}/${s}/xml.xsd" \
+# "xml.xsd" ${_schema_catalog}
+# ;;
esac
done
done
}
package() {
- cd "$srcdir/docbook-5.0"
+ cd "$srcdir"
_docbook5dir="${pkgdir}${_datadir}/xml/docbook5"
- for v in 5.0; do
- mkdir -p ${_docbook5dir}/schema/dtd/${v}
+ for v in ${pkgver}; do
+# mkdir -p ${_docbook5dir}/schema/dtd/${v}
mkdir -p ${_docbook5dir}/schema/rng/${v}
mkdir -p ${_docbook5dir}/schema/sch/${v}
- mkdir -p ${_docbook5dir}/schema/xsd/${v}
- install -m644 dtd/* ${_docbook5dir}/schema/dtd/${v}
- install -m644 rng/* ${_docbook5dir}/schema/rng/${v}
- install -m644 sch/* ${_docbook5dir}/schema/sch/${v}
- install -m644 xsd/* ${_docbook5dir}/schema/xsd/${v}
+# mkdir -p ${_docbook5dir}/schema/xsd/${v}
+# install -m644 dtd/* ${_docbook5dir}/schema/dtd/${v}
+ install -m644 schemas/rng/* ${_docbook5dir}/schema/rng/${v}
+ install -m644 schemas/sch/* ${_docbook5dir}/schema/sch/${v}
+# install -m644 xsd/* ${_docbook5dir}/schema/xsd/${v}
done
mkdir -p "$pkgdir/usr/bin"
install -m755 tools/db4-entities.pl "$pkgdir/usr/bin"
diff --git a/docbook5-schemas.install b/docbook5-schemas.install
index eb6475bcbdb..b1bc56bf950 100644
--- a/docbook5-schemas.install
+++ b/docbook5-schemas.install
@@ -3,7 +3,7 @@ _rootcatalog=/etc/xml/catalog
post_install() {
if [[ -w $_rootcatalog ]]; then
- for v in 5.0; do
+ for v in 5.1; do
xmlcatalog --noout --add "delegatePublic" \
"-//OASIS//DTD DocBook XML ${v}//EN" \
"file://${_datadir}/xml/docbook5/schema/dtd/${v}/catalog.xml" \
@@ -34,7 +34,7 @@ post_install() {
post_remove() {
if [[ -w $_rootcatalog ]]; then
- for v in 5.0; do
+ for v in 5.1; do
xmlcatalog --noout --del \
"file://${_datadir}/xml/docbook5/schema/dtd/${v}/catalog.xml" \
${_rootcatalog}