updated on Fri Jan 13 20:02:10 UTC 2012
[aur-mirror.git] / gnome-common-git / PKGBUILD
blobc637f690f50ea52d7b45ef389b2f92263c335620
1 # Maintainer: L42y <423300@gmail.com>
2 # Contributor: teddy_beer_maniac <teddy_beer_maniac@wp.pl>
4 pkgname=gnome-common-git
5 pkgver=20111014
6 pkgrel=1
7 pkgdesc="Common macros for GNOME 3(GIT Version)"
8 arch=('i686' 'x86_64')
9 license=('GPL')
10 url="http://www.gnome.org"
11 makedepends=('autoconf' 'automake' 'subversion')
12 provides=('gnome-common')
13 conflicts=('gnome-common')
15 _gitname=gnome-common
16 _gitroot=git://git.gnome.org/${_gitname}
18 build() {
19   cd "$srcdir"
20   msg "Connecting to GIT server...."
22   if [[ -d "$_gitname" ]]; then
23     cd "$_gitname" && git pull origin
24     msg "The local files are updated."
25   else
26     git clone "$_gitroot" "$_gitname"
27   fi
29   msg "GIT checkout done or server timeout"
30   msg "Starting build..."
32   rm -rf "$srcdir/$_gitname-build"
33   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
34   cd "$srcdir/$_gitname-build"
36   ./autogen.sh --prefix=/usr
37   make
40 package() {
41   cd "$srcdir/$_gitname-build"
42   make DESTDIR="$pkgdir/" install