summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6c1057a1dad99388645c05b438f71d83e751ae42 (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
34
35
36
37
# Contributor: Vincent Bernardoff <vb@luminar.eu.org>

pkgname=blktap-git
pkgver=20130311
pkgrel=1
pkgdesc="Blktap Userspace Tools + Library"
arch=('i686' 'x86_64')
url="http://github.com/xen-org/blktap"
license=('GPL')
makedepends=('git')
md5sums=('SKIP')
_gitroot="https://github.com/xen-org/blktap.git"
_gitname="blktap"

build() {
  cd "$srcdir"

  if [[ -d "$_gitname" ]]; then
    cd "$_gitname" && git pull origin
  else
    git clone "$_gitroot" "$_gitname"
  fi

  cd "$srcdir"
  rm -rf build
  git clone "$_gitname" build
  cd "$srcdir/build"

  ./autogen.sh
  ./configure --prefix=/usr
  make
}

package() {
  cd "$srcdir/build"
  make DESTDIR="$pkgdir/" install
}