Commit 3d34e506 authored by Seblu's avatar Seblu
Browse files

add native kvm tool


git-svn-id: https://seblu.net/s/archpkg@113 02741741-5192-46b8-8916-7152b19231d9
parent e728e07c
Loading
Loading
Loading
Loading

kvm/PKGBUILD

0 → 100644
+50 −0
Original line number Diff line number Diff line
# Maintainer: Sebastien Luttringer <seblu+arch@seblu.net>

pkgname=kvm
pkgver=20110804
pkgrel=1
pkgdesc='Native Linux KVM tool (should be upstream soon).'
arch=('i686' 'x86_64')
license=('GPL2')
url='https://github.com/penberg/linux-kvm'
#depends=()
conflict=('qemu-kvm')
options=()
#source=()
#md5sums=()

gitroot='git://github.com/penberg/linux-kvm.git'
gitname='linux-kvm'

build() {
  # manually fetch git repository
  cd "$startdir"
  if (( NOEXTRACT == 0 )); then
    if [[ -d $gitname ]] ; then
	    msg2 'Pulling git'
	    cd $gitname
      git pull origin
    else
      msg2 'Cloning git'
	    git clone --depth 1 "$gitroot"
    fi
  fi
  # linking source to srdir
  ln -sf "$startdir/$gitname" "$srcdir"
  # start building
  msg2 'Compiling'
  cd "$srcdir/$gitname/tools/kvm"
  make
}

#check() {
#  cd "$srcdir/$gitname/tools/kvm"
#  make check
#}

package() {
  cd "$srcdir/$gitname/tools/kvm"
  install -D -m 755 "$srcdir/$gitname/tools/kvm/kvm" "$pkgdir/usr/bin/kvm"
}

# vim:set ts=2 sw=2 ft=sh et: