updated on Mon Jan 23 12:00:23 UTC 2012
[aur-mirror.git] / guake-git / PKGBUILD
blobe34a9eabe1fa61ac2f2da96f7df8a257bfec2fc0
1 # Maintainer: Miguel Useche <migueluseche@skatox.com>
2 # Contributor: Anton Leontiev <unsector /at/ km.ru>
3 pkgname=guake-git
4 pkgver=20111109
5 pkgrel=1
6 pkgdesc="Top-down terminal for Gnome"
7 arch=('i686' 'x86_64')
8 url="http://guake.org/"
9 license=('GPL')
10 depends=('python2' 'pygtk' 'pyxdg' 'gnome-python' 'vte' 'python-notify' 'dbus-python' 'pkgconfig' 'gtk2' 'glib2')
11 makedepends=('git' 'intltool' 'gnome-common')
12 source=('http://guake.org/raw-attachment/ticket/124/multi-monitor.patch')
13 sha1sums=('7df232eca689204d0a26b6bdfc6df4f95d71e6a8')
14 install=guake.install
16 _gitroot="git://gitorious.org/guake/guake.git"
17 _gitname="guake"
19 build() {
20   sed -i 's|guake\.py|guake|' multi-monitor.patch
22   cd $srcdir/
23   msg "Connecting to GIT server...."
25   if [ -d $srcdir/$_gitname ] ; then
26     cd $_gitname && git pull origin
27     msg "The local files are updated."
28   else
29     git clone $_gitroot
30   fi
31   msg "GIT checkout done or server timeout"
32   msg "Starting make..."
34   cp -r $srcdir/$_gitname $srcdir/$_gitname-build
35   cd $srcdir/$_gitname-build
37   patch -Np1 -i "${srcdir}/multi-monitor.patch"
39   sed -i 's|env python|env python2|' src/guake-prefs
40   sed -i 's|env python|env python2|' src/guake
41   PYTHON="`which python2`" ./autogen.sh --prefix=/usr --sysconfdir=/usr/share --disable-static
42   make DESTDIR=$pkgdir install