File PKGBUILD of Package tmux
# Maintainer: Christian Hesse <[email protected]> pkgname=tmux pkgver=3.6 pkgrel=1 pkgdesc='A terminal multiplexer' url='https://github.com/tmux/tmux/wiki' arch=(x86_64 aarch64 riscv64 loongarch64) license=('BSD') depends=('ncurses' 'libevent') makedepends=('autoconf') source=("https://github.com/tmux/tmux/releases/download/${pkgver/_/}/tmux-${pkgver/_/}.tar.gz") sha256sums=('136db80cfbfba617a103401f52874e7c64927986b65b1b700350b6058ad69607') prepare() { cd "$pkgname-${pkgver/_/}" autoreconf -fiv } build() { cd "$pkgname-${pkgver/_/}" ./configure \ --prefix=/usr #--enable-utempter # waiting for utempter package make } package() { cd "$pkgname-${pkgver/_/}" make install DESTDIR="$pkgdir" install -D -m0644 COPYING "$pkgdir/usr/share/licenses/tmux/LICENSE" install -D -m644 example_tmux.conf \ "$pkgdir"/usr/share/doc/$pkgname/examples/$pkgname.conf local file for file in CHANGES README; do install -m644 "$file" "$pkgdir"/usr/share/doc/$pkgname/ done }