updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / indicator-application-bzr / PKGBUILD
blobd7f8f195c127820d598f23eac41c9567a664a516
1 # Maintainer: Michal Gawronski <dinth1906@gmail.com>
2 pkgname=indicator-application-bzr
3 pkgbranch=0.2
4 pkgver=135
5 pkgrel=2
6 pkgdesc="A library and indicator to take menus from applications and place them in the panel. (Canonical Ayatana Project)"
7 arch=('i686' 'x86_64')
8 url="https://launchpad.net/indicator-application"
9 license=('GPL')
10 depends=('libindicator-bzr' 'libdbusmenu-bzr' 'gtk2' 'python')
11 provides=('indicator-application')
12 conflicts=('indicator-application')
13 source=(no-mono-bindings.patch
14         fix-python-bindings.patch)
15 md5sums=('16761198b715bddaa68e3b55cb10f4ec'
16          '540ec6c9f6a1595111734dc73ad7de63')
17          
18  _bzrbranch=lp:indicator-application
19 _bzrmod=indicator-application
21 build() {
22   cd ${srcdir}
24   msg "Connecting to the server...."
26   if [ ! -d ./${_bzrmod} ]; then
27     bzr co ${_bzrbranch} ${_bzrmod}
28   else
29     bzr up ${_bzrmod}
30   fi
31   msg "BZR checkout done or server timeout"
32   msg "Starting make..."
34   [ -d ./${_bzrmod}-build ] && rm -rf ./${_bzrmod}-build
35   cp -r ./${_bzrmod} ./${_bzrmod}-build
36   cd ./${_bzrmod}-build
38   patch -Np1 -i $srcdir/no-mono-bindings.patch || return 1
39   patch -Np1 -i $srcdir/fix-python-bindings.patch || return 1  
40   ./autogen.sh --prefix=/usr --disable-static || return 1
41   make || return 1
42   make DESTDIR="$pkgdir" install || return 1