aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorHenrik Riomar <henrik.riomar@gmail.com>2017-01-30 17:57:41 +0100
committerTimo Teräs <timo.teras@iki.fi>2017-02-07 10:41:30 +0200
commite632cd574965fcefe598ebcdb509a54d62dabd5b (patch)
tree6f6017615014de7d5e720fe373099be9c82d27e8 /testing
parent4185cb4c95faa748920128f0718d360b5bed77fd (diff)
downloadaports-e632cd574965fcefe598ebcdb509a54d62dabd5b.tar.bz2
aports-e632cd574965fcefe598ebcdb509a54d62dabd5b.tar.xz
testing/virt-what: new aport
Diffstat (limited to 'testing')
-rw-r--r--testing/virt-what/APKBUILD42
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"