Package Details: lf 17-1

Git Clone URL: https://aur.archlinux.org/lf.git (read-only, click to copy)
Package Base: lf
Description: A terminal file manager inspred by ranger written in Go
Upstream URL: https://github.com/gokcehan/lf
Licenses: MIT
Submitter: None
Maintainer: nvllsvm
Last Packager: nvllsvm
Votes: 32
Popularity: 2.78
First Submitted: 2016-10-06 21:37
Last Updated: 2020-10-10 15:54

Dependencies (2)

Required by (1)

Sources (1)

Latest Comments

1 2 3 Next › Last »

MaxVerevkin commented on 2020-07-26 08:59

Also:

install -Dm644 -t "${pkgdir}/etc/profile.d" \
    ./etc/lf.csh \
    ./etc/lfcd.csh

Instead of

install -Dm644 -t "${pkgdir}/etc/profile.d" \
    ./etc/lf.csh
install -Dm644 -t "${pkgdir}/etc/profile.d" \
    ./etc/lfcd.csh

MaxVerevkin commented on 2020-07-26 08:49

Please change

install -Dm644 -t "${pkgdir}/usr/share/zsh/site-functions/_lf" \
    ./etc/lf.zsh

to

install -Dm644 -T ./etc/lf.zsh "${pkgdir}/usr/share/zsh/site-functions/_lf"

Also delete _srcname since it is unused.

rumpelsepp commented on 2020-05-19 05:39

On arch-dev-public the new go packaging guidelines were announced: https://wiki.archlinux.org/index.php/Go_package_guidelines

Please adopt.

tinywrkb commented on 2020-04-17 12:30

I had to export GOPATH in build() to have go mod vendor not try to download to ~/go and fail as ~/ is ro & immutable on my system.
This only happens when using Yay, not an issue when fetching the PKGBUILD manually and running makepkg.
I don't know if it makes a difference but I also have BUILDDIR set.

jomority commented on 2020-04-14 13:08

The newest version (14) includes a .desktop file and zsh and (t)csh completion. For the first two, you can apply this patch:

diff --git a/PKGBUILD b/PKGBUILD
index bed4031..b33863c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -49,6 +49,9 @@ package() {
   install -Dm644 -t "${pkgdir}/usr/share/man/man1" \
       ./lf.1

+  install -Dm644 -t "${pkgdir}/usr/share/applications" \
+      ./lf.desktop
+
   # vim
   install -Dm644 -t "${pkgdir}/usr/share/vim/vimfiles/syntax" \
       ./etc/lf.vim
@@ -60,4 +63,7 @@ package() {
       ./etc/lf.fish
   install -Dm644 -t "${pkgdir}/usr/share/fish/vendor_functions.d" \
       ./etc/lfcd.fish
+
+  # zsh
+  install -Dm644 ./etc/lf.zsh "${pkgdir}/usr/share/zsh/site-functions/_lf"
 }

For the tcsh comletion I'm not sure as I'm not familiar with it. Maybe drop the two .csh files in /usr/share/lf and let the user source them.

nvllsvm commented on 2019-11-02 04:03

For anyone upgrading from an older release of this package (<13-4) and using yay - you need to manually clear the cache for the package.

You'll have to use sudo or some chowning due to user hostile bullshit with Go's dependency management: https://github.com/golang/go/issues/27455

For yay, just:

sudo rm -rf ~/.cache/yay/lf

karcher commented on 2019-10-31 10:03

I'm getting an error during update (apparently due to permission issues):

==> Making package: lf 13-4 (Thu 31 Oct 2019 10:35:40 AM CET)
==> Retrieving sources...
  -> Found lf-r13.tar.gz
==> Validating source files with sha256sums...
    lf-r13.tar.gz ... Passed
==> Cleaning up...
rm: cannot remove '/home/user/.cache/yay/lf/src/pkg/mod/github.com/mattn/go-runewidth@v0.0.4/runewidth_appengine.go': Permission denied
rm: cannot remove '/home/user/.cache/yay/lf/src/pkg/mod/github.com/mattn/go-runewidth@v0.0.4/benchmark_test.go': Permission denied
rm: cannot remove '/home/user/.cache/yay/lf/src/pkg/mod/github.com/mattn/go-runewidth@v0.0.4/.travis.yml': Permission denied
rm: cannot remove '/home/user/.cache/yay/lf/src/pkg/mod/github.com/mattn/go-runewidth@v0.0.4/runewidth_test.go': Permission denied
rm: cannot remove '/home/user/.cache/yay/lf/src/pkg/mod/github.com/mattn/go-runewidth@v0.0.4/runewidth_posix_test.go': Permission denied
rm: cannot remove '/home/user/.cache/yay/lf/src/pkg/mod/github.com/mattn/go-runewidth@v0.0.4/runewidth_posix.go': Permission denied
rm: cannot remove '/home/user/.cache/yay/lf/src/pkg/mod/github.com/mattn/go-runewidth@v0.0.4/README.mkd': Permission denied
rm: cannot remove '/home/user/.cache/yay/lf/src/pkg/mod/github.com/mattn/go-runewidth@v0.0.4/runewidth_js.go': Permission denied
rm: cannot remove '/home/user/.cache/yay/lf/src/pkg/mod/github.com/mattn/go-runewidth@v0.0.4/runewidth_windows.go': Permission denied
rm: cannot remove '/home/user/.cache/yay/lf/src/pkg/mod/github.com/mattn/go-runewidth@v0.0.4/runewidth.go': Permission denied
rm: cannot remove '/home/user/.cache/yay/lf/src/pkg/mod/github.com/mattn/go-runewidth@v0.0.4/LICENSE': Permission denied
rm: cannot remove '/home/user/.cache/yay/lf/src/pkg/mod/github.com/nsf/termbox-go@v0.0.0-20190325093121-288510b9734e/syscalls_windows.go': Permission denied
rm: cannot remove '/home/user/.cache/yay/lf/src/pkg/mod/github.com/nsf/termbox-go@v0.0.0-20190325093121-288510b9734e/api_windows.go': Permission denied
rm: cannot remove '/home/user/.cache/yay/lf/src/pkg/mod/github.com/nsf/termbox-go@v0.0.0-20190325093121-288510b9734e/termbox_windows.go': Permission denied
rm: cannot remove '/home/user/.cache/yay/lf/src/pkg/mod/github.com/nsf/termbox-go@v0.0.0-20190325093121-288510b9734e/syscalls.go': Permission denied
rm: cannot remove '/home/user/.cache/yay/lf/src/pkg/mod/github.com/nsf/termbox-go@v0.0.0-20190325093121-288510b9734e/_demos/keyboard.go': Permission denied
rm: cannot remove '/home/user/.cache/yay/lf/src/pkg/mod/github.com/nsf/termbox-go@v0.0.0-20190325093121-288510b9734e/_demos/random_output.go': Permission denied
rm: cannot remove '/home/user/.cache/yay/lf/src/pkg/mod/github.com/nsf/termbox-go@v0.0.0-20190325093121-288510b9734e/_demos/output.go': Permission denied
rm: cannot remove '/home/user/.cache/yay/lf/src/pkg/mod/github.com/nsf/termbox-go@v0.0.0-20190325093121-288510b9734e/_demos/paint.go': Permission denied
rm: cannot remove '/home/user/.cache/yay/lf/src/pkg/mod/github.com/nsf/termbox-go@v0.0.0-20190325093121-288510b9734e/_demos/editbox.go': Permission denied
rm: cannot remove '/home/user/.cache/yay/lf/src/pkg/mod/github.com/nsf/termbox-go@v0.0.0-20190325093121-288510b9734e/_demos/raw_input.go': Permission denied
rm: cannot remove '/home/user/.cache/yay/lf/src/pkg/mod/github.com/nsf/termbox-go@v0.0.0-20190325093121-288510b9734e/_demos/interrupt.go': Permission denied
rm: cannot remove '/home/user/.cache/yay/lf/src/pkg/mod/github.com/nsf/termbox-go@v0.0.0-20190325093121-288510b9734e/syscalls_netbsd.go': Permission denied
rm: cannot remove '/home/user/.cache/yay/lf/src/pkg/mod/github.com/nsf/termbox-go@v0.0.0-20190325093121-288510b9734e/termbox.go': Permission denied
rm: cannot remove '/home/user/.cache/yay/lf/src/pkg/mod/github.com/nsf/termbox-go@v0.0.0-20190325093121-288510b9734e/syscalls_darwin.go': Permission denied
rm: cannot remove '/home/user/.cache/yay/lf/src/pkg/mod/github.com/nsf/termbox-go@v0.0.0-20190325093121-288510b9734e/syscalls_darwin_amd64.go': Permission denied
rm: cannot remove '/home/user/.cache/yay/lf/src/pkg/mod/github.com/nsf/termbox-go@v0.0.0-20190325093121-288510b9734e/syscalls_linux.go': Permission denied
rm: cannot remove '/home/user/.cache/yay/lf/src/pkg/mod/github.com/nsf/termbox-go@v0.0.0-20190325093121-288510b9734e/terminfo_builtin.go': Permission denied
rm: cannot remove '/home/user/.cache/yay/lf/src/pkg/mod/github.com/nsf/termbox-go@v0.0.0-20190325093121-288510b9734e/collect_terminfo.py': Permission denied
rm: cannot remove '/home/user/.cache/yay/lf/src/pkg/mod/github.com/nsf/termbox-go@v0.0.0-20190325093121-288510b9734e/syscalls_openbsd.go': Permission denied
rm: cannot remove '/home/user/.cache/yay/lf/src/pkg/mod/github.com/nsf/termbox-go@v0.0.0-20190325093121-288510b9734e/syscalls_dragonfly.go': Permission denied
rm: cannot remove '/home/user/.cache/yay/lf/src/pkg/mod/github.com/nsf/termbox-go@v0.0.0-20190325093121-288510b9734e/escwait.go': Permission denied
rm: cannot remove '/home/user/.cache/yay/lf/src/pkg/mod/github.com/nsf/termbox-go@v0.0.0-20190325093121-288510b9734e/api.go': Permission denied
rm: cannot remove '/home/user/.cache/yay/lf/src/pkg/mod/github.com/nsf/termbox-go@v0.0.0-20190325093121-288510b9734e/syscalls_freebsd.go': Permission denied
rm: cannot remove '/home/user/.cache/yay/lf/src/pkg/mod/github.com/nsf/termbox-go@v0.0.0-20190325093121-288510b9734e/terminfo.go': Permission denied
rm: cannot remove '/home/user/.cache/yay/lf/src/pkg/mod/github.com/nsf/termbox-go@v0.0.0-20190325093121-288510b9734e/termbox_common.go': Permission denied
rm: cannot remove '/home/user/.cache/yay/lf/src/pkg/mod/github.com/nsf/termbox-go@v0.0.0-20190325093121-288510b9734e/README.md': Permission denied
rm: cannot remove '/home/user/.cache/yay/lf/src/pkg/mod/github.com/nsf/termbox-go@v0.0.0-20190325093121-288510b9734e/LICENSE': Permission denied
rm: cannot remove '/home/user/.cache/yay/lf/src/pkg/mod/github.com/nsf/termbox-go@v0.0.0-20190325093121-288510b9734e/api_common.go': Permission denied
rm: cannot remove '/home/user/.cache/yay/lf/src/pkg/mod/github.com/nsf/termbox-go@v0.0.0-20190325093121-288510b9734e/AUTHORS': Permission denied
rm: cannot remove '/home/user/.cache/yay/lf/src/pkg/mod/github.com/nsf/termbox-go@v0.0.0-20190325093121-288510b9734e/escwait_darwin.go': Permission denied
==> WARNING: PACKAGER should have the format 'Example Name <email@address.invalid>'
==> Making package: lf 13-4 (Thu 31 Oct 2019 10:35:43 AM CET)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found lf-r13.tar.gz
==> Validating source files with sha256sums...
    lf-r13.tar.gz ... Passed
==> Removing existing $srcdir/ directory...
rm: cannot remove '/home/user/.cache/yay/lf/src/pkg/mod/github.com/mattn/go-runewidth@v0.0.4/runewidth_appengine.go': Permission denied
rm: cannot remove '/home/user/.cache/yay/lf/src/pkg/mod/github.com/mattn/go-runewidth@v0.0.4/benchmark_test.go': Permission denied
rm: cannot remove '/home/user/.cache/yay/lf/src/pkg/mod/github.com/mattn/go-runewidth@v0.0.4/.travis.yml': Permission denied
rm: cannot remove '/home/user/.cache/yay/lf/src/pkg/mod/github.com/mattn/go-runewidth@v0.0.4/runewidth_test.go': Permission denied
rm: cannot remove '/home/user/.cache/yay/lf/src/pkg/mod/github.com/mattn/go-runewidth@v0.0.4/runewidth_posix_test.go': Permission denied
rm: cannot remove '/home/user/.cache/yay/lf/src/pkg/mod/github.com/mattn/go-runewidth@v0.0.4/runewidth_posix.go': Permission denied
rm: cannot remove '/home/user/.cache/yay/lf/src/pkg/mod/github.com/mattn/go-runewidth@v0.0.4/README.mkd': Permission denied
rm: cannot remove '/home/user/.cache/yay/lf/src/pkg/mod/github.com/mattn/go-runewidth@v0.0.4/runewidth_js.go': Permission denied
rm: cannot remove '/home/user/.cache/yay/lf/src/pkg/mod/github.com/mattn/go-runewidth@v0.0.4/runewidth_windows.go': Permission denied
rm: cannot remove '/home/user/.cache/yay/lf/src/pkg/mod/github.com/mattn/go-runewidth@v0.0.4/runewidth.go': Permission denied
rm: cannot remove '/home/user/.cache/yay/lf/src/pkg/mod/github.com/mattn/go-runewidth@v0.0.4/LICENSE': Permission denied
rm: cannot remove '/home/user/.cache/yay/lf/src/pkg/mod/github.com/nsf/termbox-go@v0.0.0-20190325093121-288510b9734e/syscalls_windows.go': Permission denied
rm: cannot remove '/home/user/.cache/yay/lf/src/pkg/mod/github.com/nsf/termbox-go@v0.0.0-20190325093121-288510b9734e/api_windows.go': Permission denied
rm: cannot remove '/home/user/.cache/yay/lf/src/pkg/mod/github.com/nsf/termbox-go@v0.0.0-20190325093121-288510b9734e/termbox_windows.go': Permission denied
rm: cannot remove '/home/user/.cache/yay/lf/src/pkg/mod/github.com/nsf/termbox-go@v0.0.0-20190325093121-288510b9734e/syscalls.go': Permission denied
rm: cannot remove '/home/user/.cache/yay/lf/src/pkg/mod/github.com/nsf/termbox-go@v0.0.0-20190325093121-288510b9734e/_demos/keyboard.go': Permission denied
rm: cannot remove '/home/user/.cache/yay/lf/src/pkg/mod/github.com/nsf/termbox-go@v0.0.0-20190325093121-288510b9734e/_demos/random_output.go': Permission denied
rm: cannot remove '/home/user/.cache/yay/lf/src/pkg/mod/github.com/nsf/termbox-go@v0.0.0-20190325093121-288510b9734e/_demos/output.go': Permission denied
rm: cannot remove '/home/user/.cache/yay/lf/src/pkg/mod/github.com/nsf/termbox-go@v0.0.0-20190325093121-288510b9734e/_demos/paint.go': Permission denied
rm: cannot remove '/home/user/.cache/yay/lf/src/pkg/mod/github.com/nsf/termbox-go@v0.0.0-20190325093121-288510b9734e/_demos/editbox.go': Permission denied
rm: cannot remove '/home/user/.cache/yay/lf/src/pkg/mod/github.com/nsf/termbox-go@v0.0.0-20190325093121-288510b9734e/_demos/raw_input.go': Permission denied
rm: cannot remove '/home/user/.cache/yay/lf/src/pkg/mod/github.com/nsf/termbox-go@v0.0.0-20190325093121-288510b9734e/_demos/interrupt.go': Permission denied
rm: cannot remove '/home/user/.cache/yay/lf/src/pkg/mod/github.com/nsf/termbox-go@v0.0.0-20190325093121-288510b9734e/syscalls_netbsd.go': Permission denied
rm: cannot remove '/home/user/.cache/yay/lf/src/pkg/mod/github.com/nsf/termbox-go@v0.0.0-20190325093121-288510b9734e/termbox.go': Permission denied
rm: cannot remove '/home/user/.cache/yay/lf/src/pkg/mod/github.com/nsf/termbox-go@v0.0.0-20190325093121-288510b9734e/syscalls_darwin.go': Permission denied
rm: cannot remove '/home/user/.cache/yay/lf/src/pkg/mod/github.com/nsf/termbox-go@v0.0.0-20190325093121-288510b9734e/syscalls_darwin_amd64.go': Permission denied
rm: cannot remove '/home/user/.cache/yay/lf/src/pkg/mod/github.com/nsf/termbox-go@v0.0.0-20190325093121-288510b9734e/syscalls_linux.go': Permission denied
rm: cannot remove '/home/user/.cache/yay/lf/src/pkg/mod/github.com/nsf/termbox-go@v0.0.0-20190325093121-288510b9734e/terminfo_builtin.go': Permission denied
rm: cannot remove '/home/user/.cache/yay/lf/src/pkg/mod/github.com/nsf/termbox-go@v0.0.0-20190325093121-288510b9734e/collect_terminfo.py': Permission denied
rm: cannot remove '/home/user/.cache/yay/lf/src/pkg/mod/github.com/nsf/termbox-go@v0.0.0-20190325093121-288510b9734e/syscalls_openbsd.go': Permission denied
rm: cannot remove '/home/user/.cache/yay/lf/src/pkg/mod/github.com/nsf/termbox-go@v0.0.0-20190325093121-288510b9734e/syscalls_dragonfly.go': Permission denied
rm: cannot remove '/home/user/.cache/yay/lf/src/pkg/mod/github.com/nsf/termbox-go@v0.0.0-20190325093121-288510b9734e/escwait.go': Permission denied
rm: cannot remove '/home/user/.cache/yay/lf/src/pkg/mod/github.com/nsf/termbox-go@v0.0.0-20190325093121-288510b9734e/api.go': Permission denied
rm: cannot remove '/home/user/.cache/yay/lf/src/pkg/mod/github.com/nsf/termbox-go@v0.0.0-20190325093121-288510b9734e/syscalls_freebsd.go': Permission denied
rm: cannot remove '/home/user/.cache/yay/lf/src/pkg/mod/github.com/nsf/termbox-go@v0.0.0-20190325093121-288510b9734e/terminfo.go': Permission denied
rm: cannot remove '/home/user/.cache/yay/lf/src/pkg/mod/github.com/nsf/termbox-go@v0.0.0-20190325093121-288510b9734e/termbox_common.go': Permission denied
rm: cannot remove '/home/user/.cache/yay/lf/src/pkg/mod/github.com/nsf/termbox-go@v0.0.0-20190325093121-288510b9734e/README.md': Permission denied
rm: cannot remove '/home/user/.cache/yay/lf/src/pkg/mod/github.com/nsf/termbox-go@v0.0.0-20190325093121-288510b9734e/LICENSE': Permission denied
rm: cannot remove '/home/user/.cache/yay/lf/src/pkg/mod/github.com/nsf/termbox-go@v0.0.0-20190325093121-288510b9734e/api_common.go': Permission denied
rm: cannot remove '/home/user/.cache/yay/lf/src/pkg/mod/github.com/nsf/termbox-go@v0.0.0-20190325093121-288510b9734e/AUTHORS': Permission denied
rm: cannot remove '/home/user/.cache/yay/lf/src/pkg/mod/github.com/nsf/termbox-go@v0.0.0-20190325093121-288510b9734e/escwait_darwin.go': Permission denied

==> ERROR: An unknown error has occurred. Exiting...
Error making: lf

nvllsvm commented on 2019-10-27 15:29

@sseneca aarch64 support has been added.

@ruy16109 man page has been added

sseneca commented on 2019-10-27 10:01

Could you add 'aarch64' as a supported architecture? Adding that to the PKGBUILD makes the package work fine on my rPi running Arch Linux ARM.

ruy16109 commented on 2019-10-18 16:42

Is it possible to include the manpage during installation in the new update? Currently there is no manpage even though it is available in the upstream repo.

To add the manpage, I added the following lines at the end of package() in PKGBUILD:

local _mansec=1
install -Dm644 ./${pkgname}.${_mansec} -t "${pkgdir}/usr/share/man/man${_mansec}"