aports/testing/lf/APKBUILD
2022-05-12 02:01:31 +02:00

51 lines
1.3 KiB
Plaintext

# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Miles Alan <m@milesalan.com>
pkgname=lf
pkgver=26
pkgrel=2
pkgdesc="Terminal filemanager written in Go with vim-style keybindings"
options="chmod-clean net"
url="https://github.com/gokcehan/lf"
license="MIT"
arch="all"
makedepends="go"
subpackages="
$pkgname-doc
$pkgname-bash-completion
$pkgname-zsh-completion
$pkgname-fish-completion
"
source="$pkgname-$pkgver.tar.gz::https://github.com/gokcehan/lf/archive/r$pkgver.tar.gz"
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 -Dm0755 bin/$pkgname -t "$pkgdir"/usr/bin
# Manpages
install -Dm0644 lf.1 "$pkgdir"/usr/share/man/man1/lf.1
# .desktop file for menus
install -Dm0644 lf.desktop -t "$pkgdir"/usr/share/applications
# Shell completions
install -Dm0644 etc/lf.bash "$pkgdir"/usr/share/bash-completion/completions/lf
install -Dm0644 etc/lf.zsh "$pkgdir"/usr/share/zsh/site-functions/_lf
install -Dm0644 etc/lf.fish -t "$pkgdir"/usr/share/fish/completions
}
sha512sums="
662ce00ca666f47cb22abe7488cbb600e6a703ac9bce082a88b98d9b3a8c1d6b6188976a1c9b7f75a2eb819212065f4499441e13b4b04a79fe9a6f853ee69815 lf-26.tar.gz
"