Commit b5f84fea authored by Seblu's avatar Seblu
Browse files

update linux kvm tools


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

lkvm-git/PKGBUILD

0 → 100644
+48 −0
Original line number Diff line number Diff line
# Maintainer: Sébastien Luttringer <seblu@aur.archlinux.org>

pkgname=lkvm-git
pkgver=20120409
pkgrel=1
pkgdesc='Native Linux KVM tool'
arch=('i686' 'x86_64')
license=('GPL2')
url='https://github.com/penberg/linux-kvm'
depends=('glibc' 'zlib' 'libaio' 'libvncserver' 'sdl')
provides=('kvm')

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 lkvm "$pkgdir/usr/bin/lkvm"
  install -D -m 755 vm "$pkgdir/usr/bin/vm"
}

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