1 # Maintainer: Enrico "Enrix835" Trotta
2 # email: <enrico.trt@gmail.com>
5 pkgname=slimebattery-git
8 pkgdesc="An extremely lightweight GTK+ battery tray icon"
10 url="https://github.com/Enrix835/slimebattery"
12 depends=('gtk2' 'acpi')
16 _gitroot="git://github.com/Enrix835/slimebattery.git"
17 _gitname="slimebattery"
22 msg "Connecting to GIT server...."
24 if [ -d $_gitname ] ; then
25 cd $_gitname && git pull origin
26 msg "The local files are updated."
28 git clone $_gitroot $_gitname
31 msg "GIT checkout done or server timeout"
32 msg "Starting make..."
34 rm -rf "$srcdir/$_gitname-build"
35 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
36 cd "$srcdir/$_gitname-build"
38 msg "Starting make..."
44 cd "$srcdir/$_gitname-build"
45 mkdir -p $pkgdir/usr/bin
46 install slimebattery $pkgdir/usr/bin