updated on Thu Jan 19 16:10:29 UTC 2012
[aur-mirror.git] / diod-git / PKGBUILD
blobde86780227caa239169972bdc3babe320bd94533
1 # Contributor: Andreas B. Wagner <AndreasBWagner@pointfree.net>
2 pkgname=diod-git
3 pkgver=20110529
4 pkgrel=1
5 pkgdesc="A userspace I/O forwarding server that implements 9p2000.L"
6 arch=('i686' 'x86_64')
7 url="http://code.google.com/p/diod/"
8 license=('GPLv2')
9 groups=()
10 depends=()
11 makedepends=('git')
12 provides=('diod')
13 conflicts=()
14 replaces=()
15 backup=()
16 options=()
17 install=
18 source=()
19 noextract=()
20 md5sums=() #generate with 'makepkg -g'
22 #_gitroot="https://github.com/chaos/diod.git"
23 _gitroot="git://github.com/chaos/diod.git"
24 _gitname="diod"
26 build() {
27   cd "$srcdir"
28   msg "Connecting to GIT server...."
30   if [ -d $_gitname ] ; then
31     cd $_gitname && git pull origin
32     msg "The local files are updated."
33   else
34     git clone $_gitroot $_gitname
35   fi
37   msg "GIT checkout done or server timeout"
38   msg "Starting make..."
40   rm -rf "$srcdir/$_gitname-build"
41   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
42   cd "$srcdir/$_gitname-build"
44   # BUILD HERE
45   ./configure --prefix=/usr CFLAGS=-O2
46   make
49 package() {
50   cd "$srcdir/$_gitname-build"
51   make DESTDIR="$pkgdir/" install
52