2020-08-13 22:43:37 +02:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://github.com/gokcehan/lf
|
2020-08-27 20:34:00 +02:00
|
|
|
TERMUX_PKG_DESCRIPTION="Terminal file manager"
|
|
|
|
TERMUX_PKG_LICENSE="MIT"
|
2020-10-17 20:50:25 +02:00
|
|
|
TERMUX_PKG_VERSION=17
|
2020-08-13 22:43:37 +02:00
|
|
|
TERMUX_PKG_SRCURL=https://github.com/gokcehan/lf/archive/r$TERMUX_PKG_VERSION.tar.gz
|
2020-10-17 20:50:25 +02:00
|
|
|
TERMUX_PKG_SHA256=a6906f6c40de8cbd643d0dc6a7a25b83a6403f0e87a8352289189bea17123342
|
2020-08-27 20:34:00 +02:00
|
|
|
TERMUX_PKG_CONFFILES="etc/lf/lfrc"
|
2020-08-13 22:43:37 +02:00
|
|
|
|
|
|
|
termux_step_make() {
|
|
|
|
termux_setup_golang
|
|
|
|
export GOPATH="$TERMUX_PKG_BUILDDIR"
|
|
|
|
mkdir -p "$GOPATH/src/github.com/gokcehan"
|
|
|
|
ln -sf "$TERMUX_PKG_SRCDIR" "$GOPATH/src/github.com/gokcehan/lf"
|
|
|
|
cd "$GOPATH/src/github.com/gokcehan/lf"
|
|
|
|
go build -ldflags="-X main.gVersion=r$TERMUX_PKG_VERSION" -trimpath
|
|
|
|
}
|
|
|
|
|
|
|
|
termux_step_make_install() {
|
|
|
|
cd "$GOPATH/src/github.com/gokcehan/lf"
|
|
|
|
install -Dm755 -t "$TERMUX_PREFIX/bin" lf
|
|
|
|
install -Dm644 -T etc/lfrc.example "$TERMUX_PREFIX/etc/lf/lfrc"
|
|
|
|
install -Dm644 -t "$TERMUX_PREFIX/share/applications" lf.desktop
|
|
|
|
install -Dm644 -t "$TERMUX_PREFIX/share/doc/lf" README.md
|
|
|
|
install -Dm644 -t "$TERMUX_PREFIX/share/man/man1" lf.1
|
|
|
|
# bash integration
|
|
|
|
install -Dm644 -t "$TERMUX_PREFIX/etc/profile.d" etc/lfcd.sh
|
|
|
|
# csh integration
|
|
|
|
install -Dm644 -t "$TERMUX_PREFIX/etc/profile.d" etc/lf.csh etc/lfcd.csh
|
|
|
|
# fish integration
|
|
|
|
install -Dm644 -t "$TERMUX_PREFIX/share/fish/vendor_functions.d" etc/lfcd.fish
|
|
|
|
install -Dm644 -t "$TERMUX_PREFIX/share/fish/vendor_completions.d" etc/lf.fish
|
|
|
|
# vim integration
|
|
|
|
install -Dm644 -t "$TERMUX_PREFIX/share/vim/vimfiles/plugin" etc/lf.vim
|
|
|
|
# zsh integration
|
|
|
|
install -Dm644 -T etc/lfcd.sh "$TERMUX_PREFIX/share/zsh/site-functions/lfcd"
|
|
|
|
install -Dm644 -T etc/lf.zsh "$TERMUX_PREFIX/share/zsh/site-functions/_lf"
|
|
|
|
}
|