1 # Maintainer: TDY <tdy@gmx.com>
6 pkgdesc="A daemon to shutdown the computer at specifc times under specific conditions"
8 url="http://autopoweroff.sourceforge.net/"
11 optdepends=('pygtk: GUI configurator')
12 source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz
14 md5sums=('50cded1b5bf93cebb4ea0559087d1412'
15 'cce64b1ed195dcb21f375c582ea8f0f9')
18 cd "$srcdir/$pkgname-$pkgver"
19 sed -i '2739 s|=.*|=/var/run|; 2740 s|=.*|=/var/log|;
20 2744 s|/init|/rc|' configure
21 sed -i '/postinstall$/ d' Makefile.in
22 ./configure --prefix=/usr --sysconfdir=/etc
23 make DESTDIR="$pkgdir" install
24 ln -sf ../pixmaps/$pkgname.png "$pkgdir/usr/share/glade/$pkgname.png"
25 install -Dm755 ../$pkgname.rc "$pkgdir/etc/rc.d/$pkgname"