From e632cd574965fcefe598ebcdb509a54d62dabd5b Mon Sep 17 00:00:00 2001 From: Henrik Riomar Date: Mon, 30 Jan 2017 17:57:41 +0100 Subject: testing/virt-what: new aport --- testing/virt-what/APKBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 testing/virt-what/APKBUILD (limited to 'testing/virt-what') 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 +# 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" -- cgit v1.2.3