diff options
Diffstat (limited to 'abs/extra')
-rw-r--r-- | abs/extra/docbook-xml/PKGBUILD | 361 |
1 files changed, 101 insertions, 260 deletions
diff --git a/abs/extra/docbook-xml/PKGBUILD b/abs/extra/docbook-xml/PKGBUILD index e5996d7..6f7cefc 100644 --- a/abs/extra/docbook-xml/PKGBUILD +++ b/abs/extra/docbook-xml/PKGBUILD @@ -1,273 +1,114 @@ -# $Id: PKGBUILD 151188 2012-02-25 07:07:26Z pierre $ -# Maintainer: dorphell <dorphell@archlinux.org> -# Committer: Judd Vinet <jvinet@zeroflux.org> +# Contributor: dorphell <dorphell@archlinux.org> +# Contributor: Judd Vinet <jvinet@zeroflux.org> + +_vers=(4.{2..5}) pkgname=docbook-xml -pkgver=4.5 -pkgrel=5 +pkgver=${_vers[-1]} +pkgrel=8 pkgdesc="A widely used XML scheme for writing documentation and help" -arch=('any') -url="http://www.oasis-open.org/docbook/" -license=('MIT') -depends=('libxml2') +url="https://www.oasis-open.org/docbook/" +arch=(any) +license=(MIT) +depends=(libxml2) install=docbook-xml.install -source=('http://www.docbook.org/xml/4.5/docbook-xml-4.5.zip' - 'http://www.docbook.org/xml/4.4/docbook-xml-4.4.zip' - 'http://www.docbook.org/xml/4.3/docbook-xml-4.3.zip' - 'http://www.docbook.org/xml/4.2/docbook-xml-4.2.zip' - 'http://www.docbook.org/xml/4.1.2/docbkx412.zip' - 'LICENSE') -noextract=('docbook-xml-4.5.zip' 'docbook-xml-4.4.zip' 'docbook-xml-4.3.zip' 'docbook-xml-4.2.zip' 'docbkx412.zip') -md5sums=('03083e288e87a7e829e437358da7ef9e' - 'cbb04e9a700955d88c50962ef22c1634' - 'ab200202b9e136a144db1e0864c45074' - '73fe50dfe74ca631c1602f558ed8961f' - '900d7609fb7e6d78901b357e4acfbc17' - '50e1eea70bc071b812e963e65af6707e') +source=(https://docbook.org/xml/4.1.2/docbkx412.zip + LICENSE) +noextract=(docbkx412.zip) -package() { - for ver in 4.2 4.3 4.4 4.5; do - mkdir docbook-xml-${ver} - pushd docbook-xml-${ver} - bsdtar xf "${srcdir}/docbook-xml-${ver}.zip" - mkdir -p "${pkgdir}/usr/share/xml/docbook/xml-dtd-${ver}" - cp -dRf docbook.cat *.dtd ent/ *.mod \ - "${pkgdir}/usr/share/xml/docbook/xml-dtd-${ver}/" - popd - done - mkdir docbook-xml-4.1.2 - pushd docbook-xml-4.1.2 - bsdtar xf "${srcdir}/docbkx412.zip" - mkdir -p "${pkgdir}/usr/share/xml/docbook/xml-dtd-4.1.2" - cp -dRf docbook.cat *.dtd ent/ *.mod \ - "${pkgdir}/usr/share/xml/docbook/xml-dtd-4.1.2/" - popd +for _ver in ${_vers[@]}; do + source+=("https://docbook.org/xml/$_ver/docbook-xml-$_ver.zip") + noextract+=("docbook-xml-$_ver.zip") +done + +sha512sums=('f700591a671694ca0ac51f5b5b7e825df5c0b3604b20baa6afd3aaafa7ce99470ca1c261781b105b42bfa5485c23217cf3db821b3fcf2ebdae9df07bb8ae4063' + 'd852ab8e1442af4a91ffc32b9bb37377d98171dbc379cfd9787a2e06fc5c9b8ed04c5cd156ff5b7799973250011389456a3a3584ed4ae99362420c15235fcbb5' + '0c836346130d1e8f4e26e00959f6b4fd2c3c11269ba5cbf11cdc904724e189606f431c99cd5ab188877daa0eb44c58d0bc30556df3b51df480396818d61c4e0a' + 'f5090fb74884bae3d4fac8a3c5060bffff5d6a74272de183c181a7642e4b91f4ed32ad028537d198010782c3d98575ce679672f76a9749ed124432195886a7cb' + '7df5af4df24e4618b09814e4e20c147c722962531f03a40c28cd60f1db16b4c330420adf96adb7d66ed6eda84046ee91b467fd6f6fbfac2201537e2080735d76' + '1ee282fe86c9282610ee72c0e1d1acfc03f1afb9dc67166f438f2703109046479edb6329313ecb2949db27993077e077d111501c10b8769ebb20719eb6213d27') - mkdir -p "${pkgdir}/etc/xml" - xmlcatalog --noout --create "${pkgdir}/etc/xml/docbook-xml" +package() { + local ver xml - # V4.1.2 - 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" + mkdir -p "$pkgdir/etc/xml" + xmlcatalog --noout --create "$pkgdir/etc/xml/docbook-xml" - # V4.2 - 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" + mkdir docbook-xml-4.1.2 + bsdtar -C docbook-xml-4.1.2 -xf docbkx412.zip + for ver in ${_vers[@]}; do + mkdir docbook-xml-$ver + bsdtar -C docbook-xml-$ver -xf docbook-xml-$ver.zip + done - # V4.3 - 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" + for ver in 4.1.2 ${_vers[@]}; do + pushd docbook-xml-$ver + mkdir -p "$pkgdir/usr/share/xml/docbook/xml-dtd-$ver" + cp -dr docbook.cat *.dtd ent/ *.mod \ + "$pkgdir/usr/share/xml/docbook/xml-dtd-$ver" + popd - # V4.4 - 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" + xml= + case $ver in + 4.1.2) xml=' XML' ;;& + *) + xmlcatalog --noout --add "public" \ + "-//OASIS//DTD DocBook XML V$ver//EN" \ + "http://www.oasis-open.org/docbook/xml/$ver/docbookx.dtd" \ + "$pkgdir/etc/xml/docbook-xml" + xmlcatalog --noout --add "public" \ + "-//OASIS//DTD DocBook$xml CALS Table Model V$ver//EN" \ + "http://www.oasis-open.org/docbook/xml/$ver/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/$ver/soextblx.dtd" \ + "$pkgdir/etc/xml/docbook-xml" + xmlcatalog --noout --add "public" \ + "-//OASIS//ELEMENTS DocBook$xml Information Pool V$ver//EN" \ + "http://www.oasis-open.org/docbook/xml/$ver/dbpoolx.mod" \ + "$pkgdir/etc/xml/docbook-xml" + xmlcatalog --noout --add "public" \ + "-//OASIS//ELEMENTS DocBook$xml Document Hierarchy V$ver//EN" \ + "http://www.oasis-open.org/docbook/xml/$ver/dbhierx.mod" \ + "$pkgdir/etc/xml/docbook-xml" + xmlcatalog --noout --add "public" \ + "-//OASIS//ENTITIES DocBook$xml Additional General Entities V$ver//EN" \ + "http://www.oasis-open.org/docbook/xml/$ver/dbgenent.mod" \ + "$pkgdir/etc/xml/docbook-xml" + xmlcatalog --noout --add "public" \ + "-//OASIS//ENTITIES DocBook$xml Notations V$ver//EN" \ + "http://www.oasis-open.org/docbook/xml/$ver/dbnotnx.mod" \ + "$pkgdir/etc/xml/docbook-xml" + xmlcatalog --noout --add "public" \ + "-//OASIS//ENTITIES DocBook$xml Character Entities V$ver//EN" \ + "http://www.oasis-open.org/docbook/xml/$ver/dbcentx.mod" \ + "$pkgdir/etc/xml/docbook-xml" + ;;& + 4.[45]) + xmlcatalog --noout --add "public" \ + "-//OASIS//ELEMENTS DocBook XML HTML Tables V$ver//EN" \ + "http://www.oasis-open.org/docbook/xml/$ver/htmltblx.mod" \ + "$pkgdir/etc/xml/docbook-xml" + ;;& + *) + xmlcatalog --noout --add "rewriteSystem" \ + "http://www.oasis-open.org/docbook/xml/$ver" \ + "/usr/share/xml/docbook/xml-dtd-$ver" \ + "$pkgdir/etc/xml/docbook-xml" + xmlcatalog --noout --add "rewriteURI" \ + "http://www.oasis-open.org/docbook/xml/$ver" \ + "/usr/share/xml/docbook/xml-dtd-$ver" \ + "$pkgdir/etc/xml/docbook-xml" + ;;& + esac + done - # V4.5 - 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" + install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 LICENSE -# license - install -D -m644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + # Fix permissions + find "$pkgdir" -type f -exec chmod -c a-x {} + + chmod -Rc u=rwX,go=rX "$pkgdir" } + +# vim:set sw=2 et: |