1 # Maintainer: Gadget3000 <gadget3000 at msn dot com>
2 # Contributor: Alessio 'mOLOk' Bolognino <themolok@gmail.com>
7 pkgdesc="A Linux alternative for the notifier program released by Google"
9 url="http://gmail-notify.sourceforge.net"
11 depends=('python2' 'gtk2' 'pygtk' 'libpng12')
12 install=gmail-notify.install
13 source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz gmail-notify.patch
15 md5sums=('7d62330064b3cc70c674cb721f36975a'
16 '1d4d0c39af6f63febc16cac95f0f937e'
17 '003fd6111aa2c4924308f79c10ae0f09')
22 patch < ../gmail-notify.patch
24 mkdir -p $pkgdir/{etc,usr/{bin,share/gmail-notify}}
25 cp -R * $pkgdir/usr/share/gmail-notify/
27 mv $pkgdir/usr/share/gmail-notify/notifier.conf.sample \
30 ln -s ../share/$pkgname/notifier.py $pkgdir/usr/bin/gmail-notify
32 for i in $(find $pkgdir | grep "\.py"); do
33 sed "s/\#\!\/usr\/bin\/python/\#\!\/usr\/bin\/python2/" -i $i
34 sed "s/\#\!\/usr\/bin\/env python/\#\!\/usr\/bin\/env python2/g" -i $i
37 if [ "$CARCH" = "x86_64" ]; then
38 cp -f $srcdir/pytrayicon.so $pkgdir/usr/share/gmail-notify/
41 mv $pkgdir/etc/notifier.conf.sample $pkgdir/usr/share/gmail-notify/