nnn-static: update to 4.4

This commit is contained in:
Tuxliban Torvalds 2022-01-24 14:47:35 -06:00
parent 4c6975b048
commit 461f90d1ef
1 changed files with 19 additions and 4 deletions

View File

@ -1,8 +1,9 @@
# Template file for 'nnn'
pkgname=nnn
version=3.5
version=4.4
revision=1
build_style=gnu-makefile
make_install_target="install install-desktop"
hostmakedepends="pkg-config"
makedepends="ncurses-devel readline-devel gpm-devel"
short_desc="Missing terminal file browser for X"
@ -10,16 +11,30 @@ maintainer="Tuxliban Torvalds <tenshalito@gmail.com>"
license="BSD-2-Clause"
homepage="https://github.com/jarun/nnn"
changelog="https://raw.githubusercontent.com/jarun/nnn/master/CHANGELOG"
distfiles="${homepage}/archive/v${version}.tar.gz"
checksum=e636d4035499a112a0ad33f1557838132ed2e39d8857c5b219714fe9f64681f3
distfiles="https://github.com/jarun/nnn/archive/v${version}.tar.gz"
checksum=e04a3f0f0c2af1e18cb6f005d18267c7703644274d21bb93f03b30e4fd3d1653
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
makedepends+=" musl-fts-devel"
fi
pre_build() {
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
export LDLIBS=-lfts
fi
}
do_build() {
make O_STATIC=1 strip
make O_STATIC=1
}
post_install() {
vinstall misc/auto-completion/bash/nnn-completion.bash 644 \
usr/share/bash-completion/completions nnn
vinstall misc/auto-completion/zsh/_nnn 644 \
usr/share/zsh/site-functions
vinstall misc/auto-completion/fish/nnn.fish 644 \
usr/share/fish/vendor_completions.d
vlicense LICENSE
}