blob: 6a60a637bab6ccf0ff823030e99469a0ff732c16 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# Contributor: Felix Yan <felixonmars@archlinux.org
# Contributor: Maxim Baz <$pkgname at maximbaz dot com>
# Contributor: Pablo Arias <pabloariasal@gmail.com>
# Contributor: John Jenkins <twodopeshaggy@gmail.com>
pkgname=nnn-nerd
pkgver=5.0
pkgrel=1
pkgdesc="The fastest terminal file manager ever written (with icon support using a patched nerd font)."
arch=('x86_64')
depends=('bash')
optdepends=(
'atool: for more archive formats'
'libarchive: for more archive formats'
'zip: for zip archive format'
'unzip: for zip archive format'
'trash-cli: to trash files'
'sshfs: mount remotes'
'rclone: mount remotes'
'fuse2: unmount remotes'
'xdg-utils: desktop opener'
)
url="https://github.com/jarun/nnn"
license=('BSD')
provides=(nnn)
conflicts=(nnn)
source=("nnn-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
sha512sums=('648889de4e636882bf92d45a9fe273288858d76a28e34c6fcb27fc3d1e1b576eaec7e611f55a7f809a067ebf5a09c3a209ad84f44e2da528cfce71ed98a7a999')
prepare() {
sed -i 's/install: all/install:/' "${provides}-${pkgver}/Makefile"
}
build() {
cd "${provides}-${pkgver}"
make O_NERD=1
}
package() {
cd "${provides}-${pkgver}"
make DESTDIR="${pkgdir}" PREFIX=/usr install
make DESTDIR="${pkgdir}" PREFIX=/usr install-desktop
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"
install -Dm644 -t "${pkgdir}/usr/share/nnn/quitcd/" misc/quitcd/*
cp -a plugins "${pkgdir}/usr/share/nnn/plugins/"
install -Dm644 -t "${pkgdir}/usr/share/licenses/${provides}/" LICENSE
}
|