aports/testing/lf/APKBUILD
2021-04-30 03:42:52 +00:00

33 lines
838 B
Plaintext

# Maintainer: Miles Alan <m@milesalan.com>
pkgname=lf
pkgver=22
pkgrel=0
pkgdesc="Terminal filemanager written in Go with vim-style keybindings"
url="https://github.com/gokcehan/lf"
license="MIT"
arch="all"
makedepends="go"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/gokcehan/lf/archive/r$pkgver.tar.gz"
options="chmod-clean net"
builddir="$srcdir/lf-r$pkgver"
export GOPATH="$srcdir"
export GOCACHE="$srcdir"
export GOTMPDIR="$srcdir"
build() {
go build -v -o bin/$pkgname
}
check() {
go test ./...
}
package() {
install -Dm755 "$builddir"/bin/$pkgname "$pkgdir"/usr/bin/$pkgname
install -Dm644 lf.1 "$pkgdir"/usr/share/man/man1/lf.1
}
sha512sums="efdca3639d9042ad1ef84529b0b9be21cd8924ac094985b3d978046edb5e11303591a8bebc41df7b2837a3add196f94a8cc482a001a508c4fbc79ba1d2f8c54c lf-22.tar.gz"