1 # $Id: PKGBUILD,v 1.5 2009/05/01 05:56:52 Snowman Exp $
2 # Maintainer: Eric Belanger <eric@archlinux.org>
3 # Contributor: Eric Belanger <eric@archlinux.org>
8 pkgdesc="A cron-like periodic command scheduler"
10 url="http://sourceforge.net/projects/anacron"
12 depends=('glibc' 'bash')
13 backup=('etc/anacrontab')
14 source=(http://downloads.sourceforge.net/sourceforge/anacron/${pkgname}-${pkgver}.tar.gz \
15 anacrond anacrond.logrotate anacrontab run-anacron \
16 00anacron.daily 00anacron.monthly 00anacron.weekly)
17 md5sums=('865cc1dfe1ed75c470d3e6de13763f03' '2bc29a66a143c89605ec204b8118b82b'\
18 'cacfeaed940a5663ab5ed2eac8179e5c' '6dd361a519b45ee51dc2737eb5a4bdd5'\
19 '5ff0cdcb9ec99778938ac6ef26800327' '0a83e5b7bb5ba032f829aebcae7a41c8'\
20 'ac6e7c7ea1a20881d9fc8d9dcbeede56' 'e9496fb7b6d9c1b79ac5306bb6806c0d')
21 sha1sums=('d0e154123585e9faf615d67230d82d7d1b4c099a'
22 '7885726671ccafa091ef868a1d62af9fa7f5f2d5'
23 'dcf2aba70a4bacda40593ae052494e56df161982'
24 '5f0d196d9161777bf16f7c4d5bd8e8187cfd3339'
25 '7058dad9fe75b9cfcb08494b2b54f1eaaae95ef2'
26 '30076cd4e8fdce88717b4eb31e67acfa06d9a406'
27 '06f65004a1c3351548d2b5719c5cf1716d818ffd'
28 '428245aabdceae40925a6b818acc803945444de8')
31 cd ${srcdir}/${pkgname}-${pkgver}
32 sed -i 's/const int isleap;/int isleap;/' gregor.c || return 1
34 make PREFIX=${pkgdir} MANDIR=${pkgdir}/usr/share/man install || return 1
36 install -d ${pkgdir}/etc/{rc.d,cron.daily,cron.weekly,cron.monthly}
37 install -D -m755 ../run-anacron ${pkgdir}/usr/sbin/run-anacron
38 install -D -m755 ../anacrond ${pkgdir}/etc/rc.d/anacrond
39 install -D -m755 ../00anacron.daily ${pkgdir}/etc/cron.daily/00anacron
40 install -D -m755 ../00anacron.weekly ${pkgdir}/etc/cron.weekly/00anacron
41 install -D -m755 ../00anacron.monthly ${pkgdir}/etc/cron.monthly/00anacron
42 install -D -m644 ../anacrontab ${pkgdir}/etc/anacrontab
43 install -D -m644 ../anacrond.logrotate ${pkgdir}/etc/logrotate.d/anacrond