updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / tmux-git / PKGBUILD
blob5f8e1e85cdb777e94951e81b1d135be02714f0ee
1 # Maintainer:  C.Coutinho <kikijump[at]gmail[dot]com>
2 # Contributor: Grigorios Bouzakis <grbzks[at]gmail[dot]com>, TDY <tdy@gmx.com>
4 pkgname=tmux-git
5 pkgver=20110530
6 pkgrel=1
7 pkgdesc="A terminal multiplexer"
8 url="http://tmux.sourceforge.net/"
9 arch=('i686' 'x86_64')
10 license=('BSD')
11 depends=('ncurses' 'libevent')
12 makedepends=('git')
13 provides=('tmux')
14 conflicts=('tmux')
16 source=(LICENSE)
17 md5sums=('71601bc37fa44e4395580b321963018e')
19 _gitroot=git://github.com/ThomasAdam/tmux.git
20 _gitname=tmux
22 build() {
23   cd $srcdir
24   msg "Connecting to GIT server...."
26   if [ -d ${srcdir}/$_gitname ] ; then
27     cd $_gitname && git pull origin
28     msg "The local files are updated."
29     cd trunk/
30   else
31     git clone $_gitroot
32     cd $_gitname/trunk
33   fi
35   msg "GIT checkout done or server timeout"
37   ./autogen.sh && ./configure
39   msg "Starting make..."
40   make || return 1
42   install -Dm755 tmux "$pkgdir/usr/bin/tmux" && \
43   install -Dm644 tmux.1 "$pkgdir/usr/share/man/man1/tmux.1" && \
44   install -Dm644 examples/tmux.vim "$pkgdir/usr/share/vim/vimfiles/syntax/tmux.vim" && \
45   install -Dm644 ../../LICENSE "$pkgdir/usr/share/licenses/tmux/LICENSE" && \
46   install -dm755 "$pkgdir/usr/share/tmux/" && \
47   install -m644 examples/* "$pkgdir/usr/share/tmux/"