summaryrefslogtreecommitdiff
path: root/community-testing/gimmie/PKGBUILD
blob: 2aefefda12387e176c749b689f9906c2834c0621 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# $Id: PKGBUILD 44484 2011-04-07 20:23:57Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: György Balló <ballogy@freestart.hu>

pkgname=gimmie
pkgver=0.2.8
pkgrel=14
pkgdesc="desktop organizer which allows interaction with applications, contacts, documents, etc"
arch=('i686' 'x86_64' 'mips64el')
url="http://beatniksoftware.com/gimmie/"
license=('LGPL')
depends=('libgnomecups' 'dbus-python' 'python2-gconf' 'python-gnomeapplet'
	 'python-gnomedesktop' 'python2-libgnome' 'python-wnck' 'pyxdg'
	 'hicolor-icon-theme' 'xdg-utils')
makedepends=('findutils' 'perlxml')
options=(!libtool)
install=$pkgname.install
source=(http://www.beatniksoftware.com/gimmie/releases/$pkgname-$pkgver.tar.gz)
md5sums=('721b8ec80f0247e1281aeb4aa5614c2f')

build() {
  cd "$srcdir/$pkgname-$pkgver"
  sed -i 's@^#!.*python$@#!/usr/bin/python2@' gimmie/gimmie_{threads,bar}.py

  export CFLAGS="$CFLAGS `pkg-config --cflags glib-2.0`"
  export LDFLAGS="$LDFLAGS `pkg-config --libs glib-2.0`"

  export CFLAGS="$CFLAGS `pkg-config --cflags gtk+-2.0`"
  export LDFLAGS="$LDFLAGS `pkg-config --libs gtk+-2.0`"

  export CFLAGS="$CFLAGS `pkg-config --cflags pygtk-2.0`"
  export LDFLAGS="$LDFLAGS `pkg-config --libs pygtk-2.0`"

  ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libexecdir="/usr/lib/$pkgname" \
              --disable-static --disable-schemas-install \
              --with-gconf-schema-file-dir=/usr/share/gconf/schemas \
              PYTHON=/usr/bin/python2
  make
}

package() {
  cd "$srcdir/$pkgname-$pkgver"
  make DESTDIR="$pkgdir/" install
}