#Packager: Dimitris Tzemos <dijemos~at~gmail~dot~com>

pkgname=batti
pkgver=0.3.8
pkgrel=2dj
source=("https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/batti-gtk/batti-$pkgver.tar.gz" "batti-0.3.8-upower.patch")
docs=("authors" "install" "readme*" "copying" "changelog")
url=https://code.google.com/p/batti-gtk/

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"batti (A UPower based battery monitor for the system tray)"
"Batti is a simple battery monitor for the system tray, similar to"
"batterymon. Unlike the latter batti uses UPower, and if that is"
"missing DeviceKit.Power, for it's power information."
)

build() {
	cd $startdir/src/$pkgname-$pkgver
	patch -p1 -i "$startdir/src/batti-0.3.8-upower.patch" || return 1
	python setup.py install --prefix=/usr --root=$startdir/pkg
}
