updated on Thu Jan 12 20:00:29 UTC 2012
[aur-mirror.git] / email-reminder / PKGBUILD
blobc599688abf2b1de878476c73e5ceb9ead0eccaa4
1 # $Id:$
2 # Maintainer: Abhishek Dasgupta <abhidg@gmail.com>
4 pkgname=email-reminder
5 pkgver=0.7.3
6 pkgrel=2
7 pkgdesc="Send event reminders by email"
8 arch=('i686' 'x86_64')
9 license=('GPL3')
10 url="http://www.email-reminder.org.nz/"
11 install=email-reminder.install
12 depends=('perl>=5.10.0' 'perl-date-manip' 'perl-email-valid' 'perl-xml-dom' 'cron' 'gtk2-perl')
13 makedepends=('shadow')
14 source=(http://$pkgname.googlecode.com/files/$pkgname-$pkgver.tar.gz email-reminder.sh)
16 build() {
17   cd ${startdir}/src/${pkgname}-${pkgver}
18   sed -i "s#usr/bin/send-reminders#usr/bin/perlbin/vendor/send-reminders#g" $srcdir/$pkgname-$pkgver/email-reminder-editor || return 1
19   perl Makefile.PL INSTALLDIRS=vendor || return 1
20   make DESTDIR=$pkgdir install || return 1
21   install -D -m755 $srcdir/email-reminder.sh $pkgdir/etc/cron.daily/email-reminder.sh || return 1
22   install -D -m644 $srcdir/$pkgname-$pkgver/examples/email-reminders $pkgdir/usr/share/doc/email-reminder/email-reminders || return 1
23   install -D -m644 $srcdir/$pkgname-$pkgver/examples/email-reminder.conf $pkgdir/usr/share/doc/email-reminder/email-reminder.conf || return 1
24   mkdir -p $pkgdir/var/spool/email-reminder
25   find ${pkgdir} -name '.packlist' -delete
26   find ${pkgdir} -name 'perllocal.pod' -delete
28 md5sums=('515edf579f07ce33ae338330c67a216a'
29          '3f9946ddc64d63f78b2f5c22dc730136')