blob: 3402a141db516c18845778ddaef1012b8f193ccb (
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.8
pkgrel=3
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="b9477de2fe660244cbc6e6d7e668ea0e tmux-1.8.tar.gz"
sha256sums="f265401ca890f8223e09149fcea5abcd6dfe75d597ab106e172b01e9d0c9cd44 tmux-1.8.tar.gz"
sha512sums="555c7cdc51bfbaa1c90fa0dc820e7ad89d8a4eb818e62d8ccf4637cc96e985ffd9c242b9ba092820c3fb96d09d65c46064ce361062e59ef2586b122e624bbbbb tmux-1.8.tar.gz"
|