diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2017-05-11 13:22:26 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-05-11 13:22:26 +0200 |
commit | 563b18d3015a3215babd80253087e5459871cda7 (patch) | |
tree | c0df6ece8b637a778f42d2e64ec01019247a885d /testing/virt-what/APKBUILD | |
parent | aff72d82f1ee5ade6f2278ff1f0e5e0209600faf (diff) | |
download | aports-563b18d3015a3215babd80253087e5459871cda7.tar.bz2 aports-563b18d3015a3215babd80253087e5459871cda7.tar.xz |
testing/virt-what: fix and modernize abuild
Diffstat (limited to 'testing/virt-what/APKBUILD')
-rw-r--r-- | testing/virt-what/APKBUILD | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/testing/virt-what/APKBUILD b/testing/virt-what/APKBUILD index 0e8df441eb..661518b3de 100644 --- a/testing/virt-what/APKBUILD +++ b/testing/virt-what/APKBUILD @@ -7,15 +7,14 @@ pkgdesc="Detect if we are running in a virtual machine" url="https://people.redhat.com/~rjones/virt-what/" arch="x86 x86_64" license="GPL2+" -depends="" makedepends="automake autoconf perl-dev" subpackages="$pkgname-doc" -source="http://people.redhat.com/~rjones/$pkgname/files/$pkgname-$pkgver.tar.gz - " - -builddir="$srcdir"/$pkgname-$pkgver +source="http://people.redhat.com/~rjones/$pkgname/files/$pkgname-$pkgver.tar.gz" +builddir="$srcdir/$pkgname-$pkgver" prepare() { + default_prepare + cd "$builddir" autoreconf -ivf } @@ -26,19 +25,18 @@ build() { --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ - --mandir=/usr/share/man \ - || return 1 - make || return 1 + --mandir=/usr/share/man + make } check() { cd "$builddir" - make check || return 1 + make check } package() { cd "$builddir" - make install DESTDIR="$pkgdir" || return 1 + make install DESTDIR="$pkgdir" } sha512sums="b85d02eb632328031be93dd33be1e42603e55182c4458fca9b9d98465ff7487fc399d01ebd117a8311960091c1b166547380b9a54c0054ebf2c0aa454d9a41e5 virt-what-1.15.tar.gz" |