4 pkgdesc="A simple battery monitor ideal for openbox etc"
6 url="http://code.google.com/p/batterymon/"
8 depends=('python2' 'hal' 'dbus-python' 'pygtk')
10 optdepends=('python-notify')
11 source=(http://batterymon.googlecode.com/files/batterymon-$pkgver.tar.gz remaining_time.patch)
13 cd "$srcdir/batterymon"
14 patch -p0 < ../remaining_time.patch || return 1
15 #install -D -m755 batterymon.py "$pkgdir/usr/bin/batterymon" || return 1
16 mkdir -p "$pkgdir/usr/share/batterymon" || return 1
17 mkdir -p "$pkgdir/usr/bin/" || return 1
18 #cp -a icons "$pkgdir/usr/share/batterymon/" || return 1
19 cp -a ./ "$pkgdir/usr/share/batterymon/" || return 1
20 sed -i "$pkgdir/usr/share/batterymon/batterymon.py" -e '1d' -e '2i#!/usr/bin/env python2'
21 find "$pkgdir/usr/share/batterymon/icons" -depth -name ".svn" -type d -exec rm -rf {} \; || return 1
22 ln -sf /usr/share/batterymon/batterymon.py "$pkgdir/usr/bin/batterymon" || return 1
26 md5sums=('23bcd745daf5508005284ebd61c29c2b'
27 'b6c881c9805c50ea29c7b7568c3b3384')