updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / wayland-eagle-git / PKGBUILD
blob9515cea5563bf9888ad70718459b4e96814a49c9
1 # Maintainer: Adriano Foschi <adriano.src@gmail.com>
3 pkgname=wayland-eagle-git
4 pkgver=20090921
5 pkgrel=1
6 pkgdesc="Eagle library branch for Wayland display server."
7 arch=(i686 x86_64)
8 url="http://mesa3d.org/"
9 license=('LGPL')
10 depends=('glproto=1.4.10' 'wayland-libdrm-git' 'wayland-dri2proto-git' 'wayland-mesa-git')
11 makedepends=('pkgconfig')
12 options=(!makeflags)
14 _gitroot="http://cgit.freedesktop.org/~krh/eagle"
15 _gitname="eagle"
17 build() {
18         msg "Connecting to git.freedesktop.org GIT server...."
20         if [ -d $startdir/src/$_gitname ] ; then
21                 cd $_gitname && git pull origin
22                 msg "The local files are updated."
23         else
24                 git clone $_gitroot
25         fi
27         msg "GIT checkout done or server timeout"
28         msg "Starting make..."
30         rm -rf $startdir/src/$_gitname-build
31         cp -r $startdir/src/$_gitname $startdir/src/$_gitname-build
32         cd $startdir/src/$_gitname-build
34         cd "${startdir}/src/eagle-build"
35         autoreconf
36         ./configure --prefix=/usr || return 1
37         make || return 1
38         make DESTDIR="${pkgdir}" install || return 1