diff options
| author | jc_gargma <jc_gargma@iserlohn-fortress.net> | 2022-06-06 16:25:16 -0700 | 
|---|---|---|
| committer | jc_gargma <jc_gargma@iserlohn-fortress.net> | 2022-06-06 16:25:16 -0700 | 
| commit | dadb38efb311e2b21d08d15c6df69ed853e6bc5e (patch) | |
| tree | cbceb975a413d3858a57dabab8c75edf45b2126a | |
| download | tmux-dadb38efb311e2b21d08d15c6df69ed853e6bc5e.tar.xz | |
Initial commit
| -rw-r--r-- | PKGBUILD | 37 | 
1 files changed, 37 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..4328473 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,37 @@ +# Maintainer: jc_gargma <jc_gargma@iserlohn-fortress.net> +# Maintainer (Arch): Christian Hesse <mail@eworm.de> + +# I maintain this because: +# AUR version lacks additional optimization and hardening flags + +pkgname=tmux +pkgver=3.3 +pkgrel=2 +pkgdesc='A terminal multiplexer' +url='https://github.com/tmux/tmux/wiki' +arch=('x86_64') +license=('BSD') +depends=('ncurses' 'libevent' 'libutempter') +source=("https://github.com/tmux/tmux/releases/download/${pkgver/_/}/tmux-${pkgver/_/}.tar.gz") +sha256sums=('b2382ac391f6a1c5b93293016cdc9488337d9a04b9d611ae05eac164740351dc') +b2sums=('7e5b66d6d294c580d86f4f8729f867277e00f401dfa2a4b4c5dd5bd08c1e9884122340cbebfb37f56c67c65e940667f5b79b638f20f05282c434f7b3641ad003') + +build() { +	cd "$srcdir/$pkgname-${pkgver/_/}" + +  export CFLAGS="$CFLAGS -O3 -fstack-protector-all -flto=auto -fPIE" +  export CXXFLAGS="$CXXFLAGS -O3 -fstack-protector-all -flto=auto -fPIE" +  export LDFLAGS="$LDFLAGS,-pie" + +	./configure \ +		--prefix=/usr \ +		--enable-utempter +	make +} + +package() { +	cd "$srcdir/$pkgname-${pkgver/_/}" + +	make install DESTDIR="$pkgdir" +	install -D -m0644 COPYING "$pkgdir/usr/share/licenses/tmux/LICENSE" +}  | 
