diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2018-10-03 12:54:13 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2018-10-03 18:10:57 +0000 |
commit | 046c2f4da3f94c5573c5f5358f6796fcb2903742 (patch) | |
tree | d3f85fc13320249a44814fca1c84c837842a6261 /main/docbook-xml | |
parent | 6b0598358b99b07a556bec7fa7bda14bce66513d (diff) | |
download | aports-046c2f4da3f94c5573c5f5358f6796fcb2903742.tar.bz2 aports-046c2f4da3f94c5573c5f5358f6796fcb2903742.tar.xz |
main/docbook-xml: modernize, add package()
Diffstat (limited to 'main/docbook-xml')
-rw-r--r-- | main/docbook-xml/APKBUILD | 32 |
1 files changed, 13 insertions, 19 deletions
diff --git a/main/docbook-xml/APKBUILD b/main/docbook-xml/APKBUILD index be51eca171..1eb155e0cb 100644 --- a/main/docbook-xml/APKBUILD +++ b/main/docbook-xml/APKBUILD @@ -1,7 +1,7 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=docbook-xml pkgver=4.5 -pkgrel=5 +pkgrel=6 pkgdesc="A widely used XML scheme for writing documentation and help" url="http://scrollkeeper.sourceforge.net/docbook.shtml" arch="noarch" @@ -17,13 +17,10 @@ source="http://www.docbook.org/xml/$pkgver/$pkgname-$pkgver.zip http://www.docbook.org/xml/4.1.2/docbkx412.zip " +_versions="4.1.2 4.2 4.3 4.4 4.5" 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 + local ver + for ver in $_versions; do case $ver in 4.1.2) _filename=docbkx412.zip;; *) _filename=docbook-xml-$ver.zip;; @@ -31,9 +28,16 @@ build () { mkdir -p "$srcdir"/docbook-xml-${ver} cd "$srcdir"/docbook-xml-${ver} msg "extracting ${_filename}" - unzip "$srcdir"/$_filename || return 1 + unzip "$srcdir"/$_filename + done +} + +package () { + local ver + for ver in $_versions; do + cd "$srcdir"/docbook-xml-${ver} 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}/ || return 1 + cp -af docbook.cat *.dtd ent/ *.mod "$pkgdir"/usr/share/xml/docbook/xml-dtd-${ver}/ done chmod 755 "$pkgdir"/usr/share/xml/docbook/xml-dtd-*/ent @@ -257,16 +261,6 @@ build () { "$pkgdir"/etc/xml/docbook-xml unset XML_CATALOG_FILES } -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" -sha256sums="4e4e037a2b83c98c6c94818390d4bdd3f6e10f6ec62dd79188594e26190dc7b4 docbook-xml-4.5.zip -02f159eb88c4254d95e831c51c144b1863b216d909b5ff45743a1ce6f5273090 docbook-xml-4.4.zip -23068a94ea6fd484b004c5a73ec36a66aa47ea8f0d6b62cc1695931f5c143464 docbook-xml-4.3.zip -acc4601e4f97a196076b7e64b368d9248b07c7abf26b34a02cca40eeebe60fa2 docbook-xml-4.2.zip -30f0644064e0ea71751438251940b1431f46acada814a062870f486c772e7772 docbkx412.zip" sha512sums="1ee282fe86c9282610ee72c0e1d1acfc03f1afb9dc67166f438f2703109046479edb6329313ecb2949db27993077e077d111501c10b8769ebb20719eb6213d27 docbook-xml-4.5.zip 7df5af4df24e4618b09814e4e20c147c722962531f03a40c28cd60f1db16b4c330420adf96adb7d66ed6eda84046ee91b467fd6f6fbfac2201537e2080735d76 docbook-xml-4.4.zip f5090fb74884bae3d4fac8a3c5060bffff5d6a74272de183c181a7642e4b91f4ed32ad028537d198010782c3d98575ce679672f76a9749ed124432195886a7cb docbook-xml-4.3.zip |