aboutsummaryrefslogtreecommitdiffstats
path: root/main/tmux/APKBUILD
blob: 77cc78909a87359ac4b6d71fe8377d158445617e (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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=tmux
pkgver=1.7
pkgrel=0
pkgdesc="Tool to control multiple terminals from a single terminal"
url="http://tmux.sourceforge.net/"
arch="all"
license="BSD"
depends=""
makedepends="ncurses-dev libevent-dev autoconf automake"
install=
subpackages="$pkgname-doc"
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
	autoreconf
}

build() {
	cd "$_builddir"
	./configure --prefix=/usr\
		|| return 1
	make || return 1
}

package() {
	cd "$srcdir/$pkgname-$pkgver"
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="2c48fb9beb22eedba7a5de3b78dd0c03  tmux-1.7.tar.gz"