aboutsummaryrefslogtreecommitdiffstats
path: root/testing/kvm/APKBUILD
blob: 6ee6147209cd183a981a97e8b6cd72d4de95a742 (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=84
pkgrel=0
pkgdesc="kernel-based virtual machine"
url="http://kvm.qumranet.com"
license='GPL'
depends="uclibc"
makedepends="ncurses-dev"
source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz
	kvm-82-uclibc.patch
	"
subpackages=""

build() {
	cd "$srcdir/$pkgname-$pkgver"
	for i in ../*.patch; do
		msg "Applying $i"
		patch -p1 < $i || return 1;
	done

	./configure --prefix=/usr \
		--disable-gfx-check \
		--disable-sdl \
		--qemu-ldflags=-nopie

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

md5sums="39b7206ef400845800f081a5b901f757  kvm-84.tar.gz
c439025cbfe89b35c2ae78aa481eb93f  kvm-82-uclibc.patch"