2 # Contributor: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
3 # Contributor: Geoffroy Carrier <geoffroy.carrier@aur.archlinux.org>
4 # Contributor: Marco Ferragina <marco.ferragina@gmail.com>
8 pkgdesc="An email checker and notifier applet for gmail"
10 url="http://cgmail.tuxfamily.org/"
12 depends=('hicolor-icon-theme' 'dbus-python' 'python2-gconf' 'python2-libgnome' 'python-gnomekeyring' 'python-wnck' 'python2-feedparser' 'python-notify' 'pyxdg')
13 makedepends=('setuptools' 'python-distutils-extra' 'libcanberra')
14 install=$pkgname.install
15 source=(http://launchpad.net/$pkgname/0.6/$pkgver/+download/$pkgname-$pkgver.tar.gz)
16 sha256sums=('eda5059d8e29ccd6d0967499c031bc86ddab74a26e11a6f9b90403214e01f2de')
19 cd "$srcdir/$pkgname-$pkgver"
22 for file in $(find . -name '*.py' -print); do
23 sed -i 's_^#!.*/usr/bin/python_#!/usr/bin/python2_' $file
24 sed -i 's_^#!.*/usr/bin/env.*python_#!/usr/bin/env python2_' $file
26 sed -i 's_^#!.*/usr/bin/env.*python_#!/usr/bin/env python2_' waf
28 ./waf configure --prefix=/usr
29 ./waf build ${MAKEFLAGS}
33 cd "$srcdir/$pkgname-$pkgver"
34 ./waf install --destdir="${pkgdir}"
36 #chmod 644 "$pkgdir"/usr/share/cGmail/cgmailservice.desktop