blob: 8c28ec1dae3ccf9cad8d97ccdb990694ab78a943 (
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Miles Alan <m@milesalan.com>
pkgname=lf
pkgver=27
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="
1a9cd0a3206f01f75a9ea0dbef4fcd3a2e28e9d283b19c74e821c5e90229b9ff64524e9d151dec44d9b2c06b3f8b424c4053034b58bcc7fa38345ce7c662f013 lf-27.tar.gz
"
|