aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2017-11-18 01:15:51 +0100
committerJakub Jirutka <jakub@jirutka.cz>2017-11-18 01:16:07 +0100
commit48f2d12034a65697996f514aaf2b4b82456c53ea (patch)
treefec39698670cbd30f6cb8f31dd2bbeb211a9d47a /main
parentb34db16729ab78563258d16e0be4d5d67cb2f071 (diff)
downloadaports-48f2d12034a65697996f514aaf2b4b82456c53ea.tar.bz2
aports-48f2d12034a65697996f514aaf2b4b82456c53ea.tar.xz
main/itstool: improve abuild
Diffstat (limited to 'main')
-rw-r--r--main/itstool/APKBUILD21
1 files changed, 9 insertions, 12 deletions
diff --git a/main/itstool/APKBUILD b/main/itstool/APKBUILD
index 4a4ad3e3bd..98ac7a3317 100644
--- a/main/itstool/APKBUILD
+++ b/main/itstool/APKBUILD
@@ -7,16 +7,14 @@ url="http://itstool.org/"
arch="noarch"
license="GPL3+"
depends="py3-libxml2 python3"
-depends_dev=""
-makedepends="$depends_dev"
-install=""
subpackages="$pkgname-doc"
-source="http://files.itstool.org/itstool/itstool-$pkgver.tar.bz2
+source="http://files.itstool.org/itstool/$pkgname-$pkgver.tar.bz2
fix-segfault.patch"
+builddir="$srcdir/$pkgname-$pkgver"
-builddir="$srcdir"/itstool-$pkgver
build() {
cd "$builddir"
+
PYTHON="python3" ./configure \
--build=$CBUILD \
--host=$CHOST \
@@ -24,19 +22,18 @@ build() {
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
- --localstatedir=/var \
- || return 1
- make || return 1
+ --localstatedir=/var
+ make
}
-package() {
+check() {
cd "$builddir"
- make DESTDIR="$pkgdir" install || return 1
+ make check
}
-check() {
+package() {
cd "$builddir"
- make check
+ make DESTDIR="$pkgdir" install
}
sha512sums="f5cfa9c75710f9cc43a61caeb92ca04ec77023bce6fb14d770dda82efde2e5d9050245618c249d309227a3d43555cb1739f5fe680b4a370786ed4631fa9ee4b7 itstool-2.0.4.tar.bz2