File PKGBUILD of Package nnn

# Maintainer: Nicolas FORMICHELLA <stigpro@outlook.fr>
pkgname='nnn'
pkgver=4.9
pkgrel=0
epoch=
pkgdesc="A TUI file explorer to supercharge your productivity!"
arch=('x86_64' 'arm64' 'armv7l')
url="https://github.com/jarun/nnn"
license=('BSD')
groups=()
depends=('readline' 'ncurses')
makedepends=('make' 'gcc' 'pkg-config' 'libcurl-gnutls' 'sccache')
checkdepends=()
optdepends=('sshfs')
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=("$pkgname-v$pkgver.tar.gz")
noextract=()
md5sums=('6b16c4ed4217d401241f42bfd12c69b4')
validpgpkeys=('')

prepare() {
	cd "$pkgname-$pkgver"
}

build() {
	cd "$pkgname-$pkgver"
	make strip
}

check() {
	echo "True"
}

package() {
	cd "$pkgname-$pkgver"
	install -Dm755 "$pkgname" "$pkgdir"/usr/bin/"$pkgname"
	install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
  install -Dm644 misc/auto-completion/fish/nnn.fish "${pkgdir}/usr/share/fish/vendor_completions.d/nnn.fish"
  install -Dm644 misc/auto-completion/bash/nnn-completion.bash "${pkgdir}/usr/share/bash-completion/completions/nnn"
  install -Dm644 misc/auto-completion/zsh/_nnn "${pkgdir}/usr/share/zsh/site-functions/_nnn"
}
openSUSE Build Service is sponsored by