aboutsummaryrefslogtreecommitdiffstats
path: root/community/virt-what/APKBUILD
blob: 95bd619bfd491de97d86132c8fcfe7dc36eb92f7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Contributor: Henrik Riomar <henrik.riomar@gmail.com>
# Maintainer: Henrik Riomar <henrik.riomar@gmail.com>
pkgname=virt-what
pkgver=1.22
pkgrel=0
pkgdesc="Detect if we are running in a virtual machine"
url="https://people.redhat.com/~rjones/virt-what/"
arch="x86 x86_64 ppc64le aarch64"
license="GPL-2.0-or-later"
checkdepends="checkbashisms"
makedepends="automake autoconf perl-dev"
subpackages="$pkgname-doc"
source="https://people.redhat.com/~rjones/$pkgname/files/$pkgname-$pkgver.tar.gz
	0001-fix-bashisms-in-Alibaba-checks.patch
	"

prepare() {
	default_prepare

	autoreconf -ivf
}

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

check() {
	make check

	checkbashisms ./virt-what
}

package() {
	make install DESTDIR="$pkgdir"
}

sha512sums="
d430281edd9aaaa29f5475ab0a750ce0b2a3641fe5798769e38169e1c7879b2ee455f6c6c015cd069523045144ebcc3c4f58d205c4366b07721469a0aaa964d6  virt-what-1.22.tar.gz
df0e2f4c3a9c3092b4b5a14b6f28f3bd1828f999956bcb2b17c8150b1fe7c23446d30d41def9d61e552075d388cd6a935184553ab9dcc7a785fef6051a3cca3f  0001-fix-bashisms-in-Alibaba-checks.patch
"