blob: 7fd1f57172cf2d98c3d01843f5c42af6d63edfe2 (
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
55
|
# Maintainer: Daringcuteseal <daringcuteseal at gmail dot com>
# Contributor: Sashanoraa <sasha@noraa.gay>
# 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-icons
pkgver=5.0
pkgrel=1
pkgdesc="The fastest terminal file manager ever written. (with icon support)"
arch=('x86_64')
depends=('icons-in-terminal' 'hicolor-icon-theme')
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")
sha256sums=('31e8fd85f3dd7ab2bf0525c3c0926269a1e6d35a5343a6714315642370d8605a')
prepare() {
sed -i 's/install: all/install:/' "nnn-${pkgver}/Makefile"
}
build() {
cd "nnn-${pkgver}"
make O_ICONS=1
}
package() {
cd "nnn-${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/nnn/" LICENSE
}
|