updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / vifm-git / PKGBUILD
blob4680a8a1341ac4685c27458806a66ed1fd0f9871
1 # Maintainer: Jason Ryan <jasonwryan@gmail.com>
2 # Contributor: Thomas Dziedzic < gostrc at gmail >
3 # Contributor: Ondrej Martinak <omartinak@gmail.com>
4 # Contributor: Stefan Husmann <stefan-husmann@t-online.de>
6 pkgname=vifm-git
7 pkgver=20111102
8 pkgrel=1
9 pkgdesc='Ncurses based file manager with vi like keybindings.'
10 arch=('i686' 'x86_64')
11 url='http://vifm.sourceforge.net/'
12 license=('GPL')
13 depends=('bash' 'ncurses')
14 makedepends=('git')
15 conflicts=('vifm')
16 provides=('vifm')
18 _gitroot='git://vifm.git.sourceforge.net/gitroot/vifm/vifm'
19 _gitname='vifm'
21 build() {
22   msg "Connecting to GIT server..."
24   if [ -d $_gitname ]; then
25     cd $_gitname
26     git pull origin
27   else
28     git clone $_gitroot
29     cd $_gitname
30   fi
32   msg "GIT checkout done or server timeout"
33   msg "Starting make..."
35   rm -rf "$srcdir/$_gitname-build"
36   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
37   cd "$srcdir/$_gitname-build"
39   ./autogen.sh
40   ./configure --prefix=/usr 
41   make 
44 package() {
45   cd "$srcdir/$_gitname-build"
46   make DESTDIR="$pkgdir/" install
48 # license
49   install -D -m644 COPYING ${pkgdir}/usr/share/licenses/${pkgname%-*}/COPYING