summaryrefslogtreecommitdiffstats
path: root/testing/kvm/APKBUILD
blob: 2ffc3f8944d74823eda5e8c22e1b1565139b68f6 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=kvm
pkgver=87
pkgrel=0
pkgdesc="kernel-based virtual machine"
url="http://www.linux-kvm.org/"
license='GPL'
depends=
makedepends="ncurses-dev linux-grsec-dev pciutils-dev alsa-lib-dev curl-dev
	zlib-dev"
source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz"
subpackages=""

build() {
	cd "$srcdir/$pkgname-$pkgver"

	# lets use kernel modules from mainline kernel
	rm -r kvm/kernel

	# we need -lrt linker flag for uclibc
	sed -i -e 's/^LIBS+=-lz/LIBS+=-lz -lrt/' Makefile.target || return 1

	./configure --prefix=/usr \
		--extra-ldflags=-nopie \
		--disable-nptl \
		--audio-drv-list="alsa oss" \
		--disable-sdl 

	make || return 1
	make DESTDIR="$pkgdir"/ kcmd="#" install
}

md5sums="a03ccefb0d096f8efee2b07b56555b33  kvm-87.tar.gz"