Commit 48f2d120 authored by Jakub Jirutka's avatar Jakub Jirutka

main/itstool: improve abuild

parent b34db167
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment