updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / slimebattery-git / PKGBUILD
blobda38fb51f456a3d1e07fc355877ff0ade3b02cbd
1 # Maintainer: Enrico "Enrix835" Trotta 
2 #   email:    <enrico.trt@gmail.com>
3 #   twitter:  @enrix835  
5 pkgname=slimebattery-git
6 pkgver=20110818
7 pkgrel=1
8 pkgdesc="An extremely lightweight GTK+ battery tray icon"
9 arch=('i686' 'x86_64')
10 url="https://github.com/Enrix835/slimebattery"
11 license=('GPL')
12 depends=('gtk2' 'acpi')
13 makedepends=('git')
14 options=('strip')
16 _gitroot="git://github.com/Enrix835/slimebattery.git"
17 _gitname="slimebattery"
19 build() {
20   cd "$srcdir"
22   msg "Connecting to GIT server...."
24   if [ -d $_gitname ] ; then
25     cd $_gitname && git pull origin
26     msg "The local files are updated."
27   else
28     git clone $_gitroot $_gitname
29   fi
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"
37   
38   msg "Starting make..."
40   make
43 package() {
44   cd "$srcdir/$_gitname-build"
45   mkdir -p $pkgdir/usr/bin
46   install slimebattery $pkgdir/usr/bin
47