updated on Sun Jan 22 16:00:49 UTC 2012
[aur-mirror.git] / linux-kvm / PKGBUILD
blobd1fb08dd87450e6285e72bccf99ee0ae43bb0df9
1 # Maintainer: Sebastien Luttringer <seblu+arch@seblu.net>
3 pkgname=linux-kvm
4 pkgver=20110812
5 pkgrel=1
6 pkgdesc='Native Linux KVM tool (should be upstream soon).'
7 arch=('i686' 'x86_64')
8 license=('GPL2')
9 url='https://github.com/penberg/linux-kvm'
10 #depends=()
11 conflict=('qemu-kvm')
12 provides=('kvm')
13 #options=()
14 #source=()
15 #md5sums=()
17 gitroot='git://github.com/penberg/linux-kvm.git'
18 gitname='linux-kvm'
20 build() {
21   # manually fetch git repository
22   cd "$startdir"
23   if (( NOEXTRACT == 0 )); then
24     if [[ -d $gitname ]] ; then
25             msg2 'Pulling git'
26             cd $gitname
27       git pull origin
28     else
29       msg2 'Cloning git'
30             git clone --depth 1 "$gitroot"
31     fi
32   fi
33   # linking source to srdir
34   ln -sf "$startdir/$gitname" "$srcdir"
35   # start building
36   msg2 'Compiling'
37   cd "$srcdir/$gitname/tools/kvm"
38   make
41 #check() {
42 #  cd "$srcdir/$gitname/tools/kvm"
43 #  make check
46 package() {
47   cd "$srcdir/$gitname/tools/kvm"
48   install -D -m 755 "$srcdir/$gitname/tools/kvm/kvm" "$pkgdir/usr/bin/kvm"
51 # vim:set ts=2 sw=2 ft=sh et: