37 lines
1.0 KiB
Bash
37 lines
1.0 KiB
Bash
# Template file for 'nnn'
|
|
pkgname=nnn
|
|
version=4.6
|
|
revision=1
|
|
build_style=gnu-makefile
|
|
make_install_target="install install-desktop"
|
|
hostmakedepends="pkg-config"
|
|
makedepends="ncurses-devel readline-devel"
|
|
short_desc="Missing terminal file browser for X"
|
|
maintainer="Dennis Kraus <kraus@posteo.de>"
|
|
license="BSD-2-Clause"
|
|
homepage="https://github.com/jarun/nnn"
|
|
changelog="https://raw.githubusercontent.com/jarun/nnn/master/CHANGELOG"
|
|
distfiles="https://github.com/jarun/nnn/archive/v${version}.tar.gz"
|
|
checksum=15acaf9a88cfb5a2a640d3ef55a48af644fba92b46aac0768efe94c4addf7e3f
|
|
|
|
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
|
|
makedepends+=" musl-fts-devel"
|
|
fi
|
|
|
|
pre_build() {
|
|
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
|
|
export LDLIBS=-lfts
|
|
fi
|
|
}
|
|
|
|
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
|
|
}
|