aboutsummaryrefslogtreecommitdiffstats
path: root/community/nnn/APKBUILD
blob: 421a1b89284f86b47a132ff2418538da412cd87c (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
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=nnn
pkgver=1.7
pkgrel=1
pkgdesc="The missing terminal file browser for X"
url="https://github.com/jarun/nnn"
arch="all !armhf"  # armhf: fails to build
license="BSD-2-Clause"
makedepends="ncurses-dev readline-dev"
options="!check"  # no tests provided and `nnn -v` requires tty
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/jarun/$pkgname/archive/v$pkgver.tar.gz
	nlay"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
	make
}

package() {
	cd "$builddir"

	make install DESTDIR="$pkgdir" PREFIX=/usr

	# Overwrite the provided nlay script with our POSIX compliant version.
	install -m 755 "$srcdir"/nlay "$pkgdir"/usr/bin/nlay
}

sha512sums="7574971b423a1c49e2217d5e4415a69536b807587b4e32b61568ce0c6a1734ed85924a3ef68027653f1f0e882ef8df1bc375e119a9ded51e133a2adf5cd560cb  nnn-1.7.tar.gz
9f70f5fec2799caf1624e1334e687072dde94ee550a4cd7ee5a1a6b9b880f3fe40b6cbd631ce2d024cb811b5115249e7cd81c880c88f2289f627cd866fc06036  nlay"