updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / cgmail / PKGBUILD
blob5e4b5181c3594acbb11c3d73c1a17ce816a553cd
1 # Maintainer:
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>
5 pkgname=cgmail
6 pkgver=0.6.2
7 pkgrel=4
8 pkgdesc="An email checker and notifier applet for gmail"
9 arch=('any')
10 url="http://cgmail.tuxfamily.org/"
11 license=('GPL')
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')
18 build() {
19   cd "$srcdir/$pkgname-$pkgver"
21   # python2 fix
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
25   done
26   sed -i 's_^#!.*/usr/bin/env.*python_#!/usr/bin/env python2_' waf
28   ./waf configure --prefix=/usr
29   ./waf build ${MAKEFLAGS}
32 package() {
33   cd "$srcdir/$pkgname-$pkgver"
34   ./waf install --destdir="${pkgdir}"
36   #chmod 644 "$pkgdir"/usr/share/cGmail/cgmailservice.desktop