# Maintainer: WorMzy Tykashi # Contributor: Dmitry Korzhevin # Contributor: C.Coutinho # Contributor: Grigorios Bouzakis # Contributor: TDY pkgname=tmux-git _gitname=tmux pkgver=2.6.r93.gad417f6e pkgrel=1 pkgdesc="A terminal multiplexer" url="https://github.com/tmux/tmux/wiki" arch=('i686' 'x86_64') license=('BSD') depends=('ncurses' 'libevent') makedepends=('git') optdepends=('libutempter: Record user sessions to utmp and wtmp files (add to depends array and rebuild to enable)') #depends+=('libutempter') provides=('tmux') conflicts=('tmux') source=('git+https://github.com/tmux/tmux.git' 'LICENSE') md5sums=('SKIP' '71601bc37fa44e4395580b321963018e') pkgver() { cd $_gitname git describe --long | sed -e 's:\([^-]*-g\):r\1:' -e 's:-:.:g' } prepare() { cd $_gitname ./autogen.sh } build() { cd $_gitname ./configure --prefix=/usr make } package() { cd $_gitname make DESTDIR="$pkgdir" install install -Dm644 "$srcdir/LICENSE" "$pkgdir/usr/share/licenses/tmux/LICENSE" # install example config file install -Dm755 example_tmux.conf "$pkgdir/usr/share/tmux/example_tmux.conf" }