APKBUILD 965 Bytes
Newer Older
Henrik Riomar's avatar
Henrik Riomar committed
1
# Contributor: Henrik Riomar <henrik.riomar@gmail.com>
2
# Maintainer: Henrik Riomar <henrik.riomar@gmail.com>
Henrik Riomar's avatar
Henrik Riomar committed
3
pkgname=virt-what
4
pkgver=1.21
5
pkgrel=1
Henrik Riomar's avatar
Henrik Riomar committed
6
7
pkgdesc="Detect if we are running in a virtual machine"
url="https://people.redhat.com/~rjones/virt-what/"
8
arch="x86 x86_64 ppc64le aarch64"
9
license="GPL-2.0-or-later"
10
checkdepends="checkbashisms"
Henrik Riomar's avatar
Henrik Riomar committed
11
12
makedepends="automake autoconf perl-dev"
subpackages="$pkgname-doc"
13
source="https://people.redhat.com/~rjones/$pkgname/files/$pkgname-$pkgver.tar.gz
14
	"
15
builddir="$srcdir/$pkgname-$pkgver"
Henrik Riomar's avatar
Henrik Riomar committed
16
17

prepare() {
18
19
	default_prepare

Henrik Riomar's avatar
Henrik Riomar committed
20
21
22
23
24
25
26
27
	autoreconf -ivf
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
28
29
		--mandir=/usr/share/man
	make
30
31
32
}

check() {
33
	make check
34
35

	checkbashisms ./virt-what
Henrik Riomar's avatar
Henrik Riomar committed
36
37
38
}

package() {
39
	make install DESTDIR="$pkgdir"
Henrik Riomar's avatar
Henrik Riomar committed
40
41
}

42
sha512sums="14ace184c4aee5a09b855c1f5acaa619057aed1b9bf03c91ed1003e6a39ea69162c9fe452ea8162c7fe29825e0e2202cfc7d76e82f0cecea3e32405e5eb9f717  virt-what-1.21.tar.gz"