jobextra/tmux/PKGBUILD

55 lines
1.5 KiB
Bash

#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=tmux
pkgver=3.3_a
pkgrel=04
pkgdesc='A terminal multiplexer without systemd'
url='https://github.com/tmux/tmux/wiki'
depends=('ncurses' 'libevent' 'libutempter')
source=("https://github.com/tmux/tmux/releases/download/${pkgver/_/}/tmux-${pkgver/_/}.tar.gz"
'0001-CVE-2022-47016.patch'
'0002-ncurses.patch')
prepare() {
cd "$pkgname-${pkgver/_/}"
patch -Np1 -i ../0001-CVE-2022-47016.patch
patch -Np1 -i ../0002-ncurses.patch
autoreconf -fi
}
build() {
cd "$pkgname-${pkgver/_/}"
./configure \
--prefix=/usr \
--enable-utempter \
--disable-systemd
make
}
package() {
cd "$pkgname-${pkgver/_/}"
make install DESTDIR="$pkgdir"
install -D -m0644 COPYING "$pkgdir/usr/share/licenses/tmux/LICENSE"
}
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
license=('BSD')
sha256sums=(e4fd347843bd0772c4f48d6dde625b0b109b7a380ff15db21e97c11a4dcdf93f # tmux-3.3a.tar.gz
58fb690833e086b71b52555aa8eced695ace0a0bc51b8bccfda441e35a47ca93 # CVE-2022-47016.patch
ec46d35d980e2d63d60069567f8456ecafdf48d4d0b4f629de585d7575d797e1) # 0002-ncurses.patch
## 33b38ca8bdf8f2ffd01132f243c5e6152d3378e3776831300d562e5355313802 tmux-3.3_a-04-x86_64.pkg.tar.lz