summaryrefslogtreecommitdiff
path: root/repo/lf/lf.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-06-27 23:09:07 +0100
committerdavidovski <david@davidovski.xyz>2022-06-27 23:09:07 +0100
commitf6332a43c35387c4a2dea1746be5fd092890ae0e (patch)
treed6599f63de04096f3fc21a98e0b3bb39d55a3531 /repo/lf/lf.xibuild
parentf13e0cac13f90f7f57bce3b26b2e6383de6e4ad2 (diff)
added lf and iptables
Diffstat (limited to 'repo/lf/lf.xibuild')
-rw-r--r--repo/lf/lf.xibuild33
1 files changed, 33 insertions, 0 deletions
diff --git a/repo/lf/lf.xibuild b/repo/lf/lf.xibuild
new file mode 100644
index 0000000..192070a
--- /dev/null
+++ b/repo/lf/lf.xibuild
@@ -0,0 +1,33 @@
+#!/bin/sh
+
+NAME="lf"
+DESC="Terminal filemanager written in Go with vim-style keybindings"
+
+MAKEDEPS="go"
+
+PKG_VER=26
+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
+}
+