updated on Sun Jan 15 20:01:04 UTC 2012
[aur-mirror.git] / fehlstart-git / PKGBUILD
blobe9c4e7ba78b594206bd56701734ca37a3174ce60
1 # Author: Maep <piconna@googlemail.com>
2 # Maintainer: Guff <cassmacguff@gmail.com>
3 pkgname=fehlstart-git
4 pkgver=20110703
5 pkgrel=1
6 pkgdesc="A simple application launcher written in C and using GTK"
7 arch=('i686' 'x86_64')
8 url="https://gitorious.org/fehlstart/pages/Home"
9 license=('GPL3')
10 depends=('gtk2' 'libkeybinder')
11 makedepends=('git')
12 provides=('fehlstart')
13 conflicts=('fehlstart')
15 _gitroot="https://git.gitorious.org/fehlstart/fehlstart.git"
16 _gitname="fehlstart"
18 build() {
19   cd "$srcdir"
20   msg "Connecting to GIT server...."
22   if [ -d $_gitname ] ; then
23     cd $_gitname && git pull origin
24     msg "The local files are updated."
25   else
26     git clone $_gitroot $_gitname
27   fi
29   msg "GIT checkout done or server timeout"
30   msg "Starting make..."
32   rm -rf "$srcdir/$_gitname-build"
33   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
34   cd "$srcdir/$_gitname-build"
36   make
39 package() {
40   cd "$srcdir/$_gitname-build"
41   make PREFIX="/usr" DESTDIR="$pkgdir/" install
42