blob: b8ae474b5a4175f2f2928b2ef705161dba7b4160 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=tmux
pkgver=1.9a
pkgrel=0
pkgdesc="Tool to control multiple terminals from a single terminal"
url="http://tmux.sourceforge.net/"
arch="all"
license="BSD"
depends="ncurses-terminfo"
makedepends="ncurses-dev libevent-dev autoconf automake"
install=
subpackages="$pkgname-doc $pkgname-bash-completion:completion"
source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz"
_builddir="$srcdir/$pkgname-$pkgver"
prepare() {
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p0 -i "$srcdir"/$i || return 1;;
esac
done
aclocal && autoconf && automake --add-missing --force || return 1
}
build() {
cd "$_builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
|| return 1
make || return 1
}
package() {
cd "$srcdir/$pkgname-$pkgver"
make DESTDIR="$pkgdir" install || return 1
}
completion() {
depends=""
pkgdesc="Bash completion script for tmux"
arch="noarch"
install -Dm644 "$srcdir"/tmux-$pkgver/examples/bash_completion_tmux.sh \
"$subpkgdir"/usr/share/bash-completion/completions/tmux
}
md5sums="b07601711f96f1d260b390513b509a2d tmux-1.9a.tar.gz"
sha256sums="c5e3b22b901cf109b20dab54a4a651f0471abd1f79f6039d79b250d21c2733f5 tmux-1.9a.tar.gz"
sha512sums="842984638dc1f7364c03393187379598f35679d535d911d5df4016944d6032e61a1bf840d7d339c6e99b30c55581d470acca85ab6ee5799b8927d18c0e9a91df tmux-1.9a.tar.gz"
|