mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-07 11:45:36 +02:00
50 lines
1.4 KiB
Text
50 lines
1.4 KiB
Text
# Contributor: Leo <thinkabit.ukim@gmail.com>
|
|
# Maintainer: James Chen-Smith <james@chen-smith.net>
|
|
pkgname=lf
|
|
pkgver=35
|
|
pkgrel=1
|
|
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 GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
|
|
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
|
|
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"
|
|
|
|
build() {
|
|
go build -v -ldflags "-X main.gVersion=r$pkgver" -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/vendor_completions.d
|
|
}
|
|
|
|
sha512sums="
|
|
67dd2c949a0d8e8eec0f6a01cb02d691781cbc946d7ad6209bc002c6d9239b479c85af0817ea1f007040b5051ee258871fddcaab93f101b058f992ca38f52e6d lf-35.tar.gz
|
|
"
|