# Contributor: Natanael Copa # Maintainer: Natanael Copa pkgname=tmux pkgver=2.5 pkgrel=1 pkgdesc="Tool to control multiple terminals from a single terminal" url="https://tmux.github.io/" arch="all" license="BSD" depends="ncurses-terminfo" makedepends="ncurses-dev libevent-dev autoconf automake bsd-compat-headers" install= subpackages="$pkgname-doc" source="https://github.com/tmux/tmux/releases/download/$pkgver/$pkgname-$pkgver.tar.gz" builddir="$srcdir/"$pkgname-$pkgver build() { cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --localstatedir=/var make } check() { cd "$builddir" make check } package() { cd "$builddir" make DESTDIR="$pkgdir" install install -Dm644 example_tmux.conf \ "$pkgdir"/usr/share/doc/$pkgname/examples/$pkgname.conf for file in CHANGES FAQ README TODO; do install -m644 "$file" "$pkgdir"/usr/share/doc/$pkgname/ done } sha512sums="c0e8365a553d034e347f2f7a0d64f04e2be4307a75a9f72c8218fc56b72e531f3f37fe4a8f0e8d70801f5f62ee250ab7e9978abd6d101d273f76b4a1a92b08e0 tmux-2.5.tar.gz"