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