updated on Wed Jan 18 08:00:29 UTC 2012
[aur-mirror.git] / alacarte-git / PKGBUILD
blob44ce614234fb79272ebc9aca48702c5f73c4533b
1 # Maintainer: György Balló <ballogy@freestart.hu>
2 _pkgname=alacarte
3 pkgname=$_pkgname-git
4 pkgver=20110930
5 pkgrel=1
6 pkgdesc="Menu editor for GNOME"
7 arch=(any)
8 url="http://git.gnome.org/browse/alacarte/"
9 license=(LGPL)
10 depends=(python2-gobject gnome-menus2 gnome-panel hicolor-icon-theme xdg-utils)
11 makedepends=(git gnome-common intltool)
12 provides=(alacarte)
13 conflicts=(alacarte)
14 install=$_pkgname.install
15 source=(no-pygtk.patch)
16 md5sums=(c7038f4adc2066b796713e53a67856e2)
18 _gitroot="git://git.gnome.org/alacarte"
19 _gitname="alacarte"
21 build() {
22   cd "$srcdir"
23   msg "Connecting to GIT server...."
25   if [ -d $_gitname ] ; then
26     cd $_gitname && git pull origin
27     msg "The local files are updated."
28   else
29     git clone $_gitroot $_gitname
30   fi
32   msg "GIT checkout done or server timeout"
33   msg "Starting make..."
35   rm -rf "$srcdir/$_gitname-build"
36   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
37   cd "$srcdir/$_gitname-build"
39   #
40   # BUILD HERE
41   #
43   patch -Np1 -i "$srcdir/no-pygtk.patch"
45   ./autogen.sh --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
46                PYTHON=/usr/bin/python2
47   make
50 package() {
51   cd "$srcdir/$_gitname-build"
53   make DESTDIR="$pkgdir/" install