aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2017-08-17 02:29:16 +0000
committerTimo Teräs <timo.teras@iki.fi>2017-08-28 08:40:48 +0000
commit1f7f771c4cbeb582b3a4ab79356ba302732c6ecf (patch)
tree9227c4fd3dde74fd32d3663a53ef97b1bfd9ff07
parent2240cd638003f6db5144f60f99d4b6034d0e9744 (diff)
downloadaports-1f7f771c4cbeb582b3a4ab79356ba302732c6ecf.tar.bz2
aports-1f7f771c4cbeb582b3a4ab79356ba302732c6ecf.tar.xz
main/xmlto: modernise, add test suite
-rw-r--r--main/xmlto/APKBUILD14
1 files changed, 9 insertions, 5 deletions
diff --git a/main/xmlto/APKBUILD b/main/xmlto/APKBUILD
index 6a51410ec7..9f9daf030e 100644
--- a/main/xmlto/APKBUILD
+++ b/main/xmlto/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xmlto
pkgver=0.0.28
-pkgrel=0
+pkgrel=1
pkgdesc="Convert xml to many other formats"
url="http://cyberelk.net/tim/software/xmlto/"
arch="all"
@@ -21,14 +21,18 @@ build() {
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
- --mandir=/usr/share/man \
- || return 1
- make -j1 || return 1
+ --mandir=/usr/share/man
+ make -j1
+}
+
+check() {
+ cd "$builddir"
+ make check
}
package() {
cd "$builddir"
- make -j1 DESTDIR="$pkgdir" install || return 1
+ make -j1 DESTDIR="$pkgdir" install
}
md5sums="93bab48d446c826399d130d959fe676f xmlto-0.0.28.tar.bz2"