aboutsummaryrefslogtreecommitdiffstats
path: root/main/tmux/APKBUILD
blob: f1549173d16fc9139469d40565f69c9e9b5ea4e6 (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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=tmux
pkgver=2.3
pkgrel=3
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
prepare() {
	default_prepare || return 1

	cd "$builddir"
	aclocal && autoconf && automake --add-missing --force || return 1
}

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		|| return 1
	make || return 1
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install || return 1

	install -Dm644 example_tmux.conf \
		"$pkgdir"/usr/share/doc/$pkgname/examples/$pkgname.conf \
		|| return 1
	for file in CHANGES FAQ README TODO; do
		install -m644 "$file" "$pkgdir"/usr/share/doc/$pkgname/ \
			|| return 1
	done
}

md5sums="fcfd1611d705d8b31df3c26ebc93bd3e  tmux-2.3.tar.gz"
sha256sums="55313e132f0f42de7e020bf6323a1939ee02ab79c48634aa07475db41573852b  tmux-2.3.tar.gz"
sha512sums="521e3734104be43837cba95d8b3d050d033708fa7469f7e7db66ae6993b002c4d9f6bafec41f3c9446eda91a4499e571019534dfa2e5a0563085b2d16e1b94af  tmux-2.3.tar.gz"