blob: 0e8df441eb566c16f2bced98739bd5e79da3cf8b (
plain)
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
|
# 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
}
check() {
cd "$builddir"
make check || return 1
}
package() {
cd "$builddir"
make install DESTDIR="$pkgdir" || return 1
}
sha512sums="b85d02eb632328031be93dd33be1e42603e55182c4458fca9b9d98465ff7487fc399d01ebd117a8311960091c1b166547380b9a54c0054ebf2c0aa454d9a41e5 virt-what-1.15.tar.gz"
|