jobextra/tmux/PKGBUILD

57 lines
1.6 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=07
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
70e8cc2a95dd4a19ff54bcf0abaeff6464ebecbaace5ed0aec06ca93a84d415a) # 0002-ncurses.patch
## 89cee0c3426b7309edaf7988b8c4801c2a4a7056904b7feb08c82b4f23844f29 tmux-3.3_a-07-x86_64.pkg.tar.lz
89cee0c3426b7309edaf7988b8c4801c2a4a7056904b7feb08c82b4f23844f29 tmux-3.3_a-07-x86_64.pkg.tar.lz
e4fd347843bd0772c4f48d6dde625b0b109b7a380ff15db21e97c11a4dcdf93f tmux-3.3a.tar.gz