diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-07-27 02:09:32 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-07-27 02:09:32 -0500 |
commit | 7200f8b6ddc2551b04dd27afc3e03cc1129c62c8 (patch) | |
tree | 851e80a20edfd45134156984e480c7068f6e7162 /user/tmux | |
parent | d28cab7b5243e9b4a3e36a88b64bdc8e1e591170 (diff) | |
download | packages-7200f8b6ddc2551b04dd27afc3e03cc1129c62c8.tar.gz packages-7200f8b6ddc2551b04dd27afc3e03cc1129c62c8.tar.bz2 packages-7200f8b6ddc2551b04dd27afc3e03cc1129c62c8.tar.xz packages-7200f8b6ddc2551b04dd27afc3e03cc1129c62c8.zip |
user/tmux: pull in, bump to 2.7, fix license, modernise
Diffstat (limited to 'user/tmux')
-rw-r--r-- | user/tmux/APKBUILD | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/user/tmux/APKBUILD b/user/tmux/APKBUILD new file mode 100644 index 000000000..7b1cf3986 --- /dev/null +++ b/user/tmux/APKBUILD @@ -0,0 +1,43 @@ +# Contributor: Natanael Copa <ncopa@alpinelinux.org> +# Maintainer: +pkgname=tmux +pkgver=2.7 +pkgrel=0 +pkgdesc="Tool to control multiple terminals from a single terminal" +url="https://tmux.github.io/" +arch="all" +license="MIT" +depends="ncurses-terminfo" +makedepends="bsd-compat-headers libevent-dev libutempter-dev ncurses-dev" +subpackages="$pkgname-doc" +source="https://github.com/tmux/tmux/releases/download/$pkgver/$pkgname-$pkgver.tar.gz" + +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 README TODO; do + install -m644 "$file" "$pkgdir"/usr/share/doc/$pkgname/ + done +} + +sha512sums="7839ef748ea55df8c02c727047f65bd235b5e3b8ab23157246071e1b9954fa269594da9fbd0fabf6a850e3b5dfda962a0a067c1507411c92a84d1db2666ecf37 tmux-2.7.tar.gz" |