updated on Sun Jan 15 16:02:00 UTC 2012
[aur-mirror.git] / autopoweroff / PKGBUILD
blob074d91682aa4fec8581fcd4ce563cc54bfbbc2bc
1 # Maintainer: TDY <tdy@gmx.com>
3 pkgname=autopoweroff
4 pkgver=2.9.1
5 pkgrel=1
6 pkgdesc="A daemon to shutdown the computer at specifc times under specific conditions"
7 arch=('i686' 'x86_64')
8 url="http://autopoweroff.sourceforge.net/"
9 license=('GPL')
10 depends=('python')
11 optdepends=('pygtk: GUI configurator')
12 source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz
13         $pkgname.rc)
14 md5sums=('50cded1b5bf93cebb4ea0559087d1412'
15          'cce64b1ed195dcb21f375c582ea8f0f9')
17 build() {
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"