summaryrefslogtreecommitdiff
path: root/repo/lf/lf.xibuild
blob: 7da985fe8c9923df17cd6f9ca130739a52650924 (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
#!/bin/sh

NAME="lf"
DESC="Terminal filemanager written in Go with vim-style keybindings"

MAKEDEPS="go"

PKG_VER=27
SOURCE="https://github.com/gokcehan/lf/archive/r$PKG_VER.tar.gz"

build() {
	go build -v -o bin/lf
}

check() {
	go test ./...
}

package() {
	install -Dm0755 bin/lf "$PKG_DEST"/usr/bin

	# Manpages
	install -Dm0644 lf.1 "$PKG_DEST"/usr/share/man/man1/lf.1

	# .desktop file for menus
	install -Dm0644 lf.desktop "$PKG_DEST"/usr/share/applications

	# Shell completions
	install -Dm0644 etc/lf.bash "$PKG_DEST"/usr/share/bash-completion/completions/lf
	install -Dm0644 etc/lf.zsh "$PKG_DEST"/usr/share/zsh/site-functions/_lf
	install -Dm0644 etc/lf.fish "$PKG_DEST"/usr/share/fish/completions
}