aboutsummaryrefslogtreecommitdiffstats
path: root/community/ranger/APKBUILD
blob: 9dd3d3d6ee756f861b841b42b5a50f077a0dd1ff (plain) (blame)
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
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer:
pkgname=ranger
pkgver=1.9.3
pkgrel=2
pkgdesc="VIM-inspired filemanager for the console"
url="https://ranger.github.io/"
arch="noarch"
license="GPL-3.0-only"
depends="python3"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/ranger/ranger/archive/v$pkgver.tar.gz"

build() {
	python3 setup.py build
}

check() {
	pytest-3 tests
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1

	install -Dm644 doc/ranger.1 "$pkgdir"/usr/share/man/man1/ranger.1
	install -Dm644 doc/rifle.1 "$pkgdir"/usr/share/man/man1/rifle.1
}

sha512sums="5cd7bea714a6542d0a5445f5f0cf929b2df4377df3ef710f3786c6c46dd58b017a8060cde3969076637bfaac03c13297d3020fd82f4574dc49546ca223c0e8d3  ranger-1.9.3.tar.gz"