diff options
Diffstat (limited to 'main/itstool/APKBUILD')
-rw-r--r-- | main/itstool/APKBUILD | 21 |
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 |