nnn: Update to 4.8

This commit is contained in:
Christoph Reiter 2023-05-19 11:01:00 +02:00
parent b8ff0ee785
commit 98e46b3d7d

View File

@ -3,13 +3,12 @@
# Adapted from Arch PKGBUILD: https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=nnn-git
pkgname=nnn
pkgver=4.6.r33.gf6edcc41
pkgver=4.8
pkgrel=1
pkgdesc="The fastest terminal file manager ever written."
arch=(i686 x86_64)
url='https://github.com/jarun/nnn'
license=('spdx:BSD-2-Clause')
_commit="f6edcc41b90f9c6b79d190599465bbb4ce837a7c"
depends=(
'bash'
'ncurses'
@ -22,26 +21,22 @@ optdepends=(
'unzip: for zip archive format'
'rclone: mount remotes'
)
makedepends=(git gcc libreadline-devel ncurses-devel)
source=("git+https://github.com/jarun/nnn.git#commit=${_commit}")
sha256sums=('SKIP')
pkgver() {
cd nnn
git describe --long --tags | sed -r 's/([^-]*-g)/r\1/;s/-/./g;s/v//g'
}
makedepends=(gcc libreadline-devel ncurses-devel)
source=("https://github.com/jarun/nnn/releases/download/v${pkgver}/nnn-v${pkgver}.tar.gz")
sha256sums=('7027f830329ff3451b844d1f5fbeb1d866bed1af6f24a360d5c51888cb1ae8f0')
prepare() {
sed -i 's/install: all/install:/' nnn/Makefile
cd "nnn-${pkgver}"
sed -i 's/install: all/install:/' Makefile
}
build() {
cd nnn
cd "nnn-${pkgver}"
make
}
package() {
cd nnn
cd "nnn-${pkgver}"
make DESTDIR="${pkgdir}" PREFIX=/usr strip install
install -Dm644 misc/auto-completion/fish/nnn.fish "${pkgdir}/usr/share/fish/vendor_completions.d/nnn.fish"