diff options
Diffstat (limited to 'testing/virt-what/APKBUILD')
-rw-r--r-- | testing/virt-what/APKBUILD | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/testing/virt-what/APKBUILD b/testing/virt-what/APKBUILD new file mode 100644 index 0000000000..cdf2f1e21e --- /dev/null +++ b/testing/virt-what/APKBUILD @@ -0,0 +1,42 @@ +# Contributor: Henrik Riomar <henrik.riomar@gmail.com> +# Maintainer: +pkgname=virt-what +pkgver=1.15 +pkgrel=0 +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 + +prepare() { + cd "$builddir" + autoreconf -ivf +} + +build() { + cd "$builddir" + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --mandir=/usr/share/man \ + || return 1 + make || return 1 + make check || return 1 +} + +package() { + cd "$builddir" + make install DESTDIR="$pkgdir" || return 1 +} + +md5sums="35d19ca3305e8ae88c1985fbd8388f53 virt-what-1.15.tar.gz" +sha256sums="7ab9220d4682eadf9139c6afe62d33ebd273fff69e49054279caba5514937c41 virt-what-1.15.tar.gz" +sha512sums="b85d02eb632328031be93dd33be1e42603e55182c4458fca9b9d98465ff7487fc399d01ebd117a8311960091c1b166547380b9a54c0054ebf2c0aa454d9a41e5 virt-what-1.15.tar.gz" |