# Contributor: Henrik Riomar # Maintainer: pkgname=virt-what pkgver=1.18 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+" makedepends="automake autoconf perl-dev" subpackages="$pkgname-doc" source="http://people.redhat.com/~rjones/$pkgname/files/$pkgname-$pkgver.tar.gz skip-ldoms-test-if-not-sparc64.patch" builddir="$srcdir/$pkgname-$pkgver" prepare() { default_prepare cd "$builddir" autoreconf -ivf } build() { cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --mandir=/usr/share/man make } check() { cd "$builddir" make check } package() { cd "$builddir" make install DESTDIR="$pkgdir" } sha512sums="8085a38111d5664f411f5bb9d2ee221bc22e5b0f2d993e8d518718b3f63b16ba73e052b1623c090493cf8fef52fd237ba823377503a32b4b7d03cc5380d5c613 virt-what-1.18.tar.gz d47d5cfaf3c79eb7d7e1fd5d24cb620628d8038cc724e738fca55dad7fdf312616e13d4149114ad8913f691c0b2e2548ad5fe12d789eeca9a50e500911b3c731 skip-ldoms-test-if-not-sparc64.patch"