updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / libwayland-git / PKGBUILD
blob9767c361dc81cd800c9019f5c95625601d91fe71
1 pkgname=libwayland-git
2 pkgver=20111128
3 pkgrel=1
4 pkgdesc="A modern display server."
5 arch=(i686 x86_64)
6 url="http://wayland.freedesktop.org"
7 license=('LGPLv2')
8 depends=('expat' 'libffi')
9 makedepends=('pkgconfig')
10 options=(!makeflags)
12 _gitroot="git://anongit.freedesktop.org/wayland/wayland"
13 _gitname="wayland"
15 build() {
16         msg "Connecting to git.freedesktop.org GIT server...."
18         if [ -d $startdir/src/$_gitname ] ; then
19                 cd $_gitname && git pull origin
20                 msg "The local files are updated."
21         else
22                 git clone $_gitroot
23         fi
25         msg "GIT checkout done or server timeout"
26         msg "Starting make..."
28         rm -rf ${srcdir}/$_gitname-build
29         cp -r ${srcdir}/$_gitname ${srcdir}/$_gitname-build
30         cd ${srcdir}/$_gitname-build
31         ./autogen.sh --prefix=/usr
32         make
35 package() {
36      cd ${srcdir}/$_gitname-build
37      make DESTDIR="${pkgdir}" install