updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / trayer-srg-git / PKGBUILD
blob500a4dde9d8d84b63a6b66aaeb0466a7b63982bb
1 # Contributor: Daniel Ehlers <danielehlers@mindeye.net>
2 pkgname=trayer-srg-git
3 pkgver=20120103
4 pkgrel=1
5 pkgdesc="A trayer fork with multi monitor support, cleaned up codebase and other fancy stuff."
6 arch=('i686' 'x86_64')
7 url="http://github.com/sargon/trayer-srg"
8 license=('MIT')
9 depends=('gtk2')
10 makedepends=('git')
11 conflicts=('trayer')
12 replaces=('trayer')
14 _gitroot="git://github.com/sargon/trayer-srg.git"
15 _gitname="trayer-srg"
17 build() {
18   cd "$srcdir"
19   msg "Connecting to GIT server...."
21   if [ -d $_gitname ] ; then
22     cd $_gitname && git pull origin
23     msg "The local files are updated."
24   else
25     git clone $_gitroot $_gitname
26   fi
28   msg "GIT checkout done or server timeout"
29   msg "Starting make..."
31   rm -rf "$srcdir/$_gitname-build"
32   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
33   cd "$srcdir/$_gitname-build"
34   
35   #
36   # BUILD HERE
37   #
38   make || return 1
39   make PREFIX="$pkgdir/usr/" install
40