updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / dvtm-git / PKGBUILD
blob80424d1d267726bb53d1b6936351c136ce575f7b
1 # Maintainer: Thomas Dziedzic < gostrc at gmail >
2 # Contributor: garfiield <garfiield at garfiield dot net>
4 pkgname=dvtm-git
5 pkgver=20100604
6 pkgrel=1
7 pkgdesc='Tiling window management for the console.'
8 arch=('i686' 'x86_64')
9 url='http://www.brain-dump.org/projects/dvtm/'
10 license=('MIT')
11 depends=('ncurses')
12 conflicts=('dvtm')
13 provides=('dvtm')
14 makedepends=('git')
15 install=dvtm.install
16 source=('config.h')
17 md5sums=('5759191a39281e62a64941d3f28cf010')
19 _gitroot='git://repo.or.cz/dvtm.git'
20 _gitname='dvtm'
22 build() {
23   msg "Connecting to GIT server..."
25   if [ -d $_gitname ] ; then
26     (cd $_gitname && git pull origin)
27   else
28     git clone $_gitroot
29   fi
31   msg "GIT checkout done or server timeout"
32   msg "Starting make..."
34   rm -rf $_gitname-build
35   cp -r $_gitname $_gitname-build
36   cd $_gitname-build
38   cp "$srcdir/config.h" config.h
40   make || return 1
42   make PREFIX=/usr DESTDIR="$pkgdir" install || return 1
44   install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$_gitname/LICENSE" || return 1
45   install -Dm644 README "$pkgdir/usr/share/doc/$_gitname/README" || return 1