Package Details: lf 13-4

Git Clone URL: (read-only, click to copy)
Package Base: lf
Description: A terminal file manager inspred by ranger written in Go
Upstream URL:
Licenses: MIT
Submitter: None
Maintainer: nvllsvm
Last Packager: nvllsvm
Votes: 10
Popularity: 1.96
First Submitted: 2016-10-06 21:37
Last Updated: 2019-11-02 03:57

Dependencies (2)

Required by (1)

Sources (1)

Latest Comments

« First ‹ Previous 1 2

rumpelsepp commented on 2019-09-18 18:46

Here is an update. Mind me adding as a co maintainer? :-)

edit: I added completions and everything as well.

diff --git a/PKGBUILD b/PKGBUILD
index e3c68c2..d038e0e 100644
@@ -1,33 +1,38 @@
+# Maintainer: Andrew Rabert <>
 # Contributor: Ian Beringer <>
 # Contributor: Stefan Husmann <>
-# Maitainer: Andrew Rabert <>
+# Contributor: Stefan Tatschner <>

 pkgdesc="A terminal file manager inspred by ranger written in Go"
-makedepends=('git' 'go')
 arch=('armv7h' 'i686' 'x86_64')

 build() {
-  export GOPATH=${srcdir}
-  mkdir -p ${GOPATH}/src
-  rm -rf ${GOPATH}/src/${_srcname} 
-  mv ${_srcname} ${GOPATH}/src
-  cd ${GOPATH}/src/${_srcname}
-  go get
-  version=r$pkgver ./gen/
+   cd $pkgname-r$pkgver
+   go build \
+    -trimpath \
+    -ldflags "-X main.gVersion=$version -extldflags $LDFLAGS" \
+    -o $pkgname .

 package() {
-  cd ${GOPATH}/src/${_srcname}
-  install -Dm755 lf-r$pkgver "${pkgdir}"/usr/bin/lf
-  install -Dm644 ./LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
-  install -Dm644 ./ "${pkgdir}"/usr/share/doc/${pkgname}/
+  cd $pkgname-r$pkgver
+  install -Dm755 lf "${pkgdir}"/usr/bin/lf
+  install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+  install -Dm644 "${pkgdir}"/usr/share/doc/${pkgname}/
+  install -Dm644 etc/lfrc.example "${pkgdir}"/usr/share/doc/${pkgname}/lfrc.example
+  install -Dm644 etc/lf.vim "${pkgdir}"/usr/share/vim/vimfiles/plugin/lf.vim
+  install -Dm644 etc/ "${pkgdir}"/usr/share/fish/vendor_completions.d/
+  install -Dm644 etc/ "${pkgdir}"/usr/share/fish/vendor_functions.d/
+  install -Dm644 etc/ "${pkgdir}"/usr/share/${pkgname}/
+  install -Dm644 lf.1 "${pkgdir}"/usr/share/man/man1/lf.1

nvllsvm commented on 2018-11-14 00:30

This package needs some love. It fails to build currently.

Recommended changes:

  • build dependencies are missing. Use dep to install these
  • requires go-pie when go is sufficient
  • add armv7h support

Here's a working version:

# Contributor: Ian Beringer <>
# Maintainer: Stefan Husmann <>

pkgdesc="A terminal file manager inspred by ranger written in Go"
makedepends=('dep' 'git' 'go')
arch=('armv7h' 'i686' 'x86_64')

build() {
  export GOPATH=${srcdir}
  mkdir -p ${GOPATH}/src
  rm -rf ${GOPATH}/src/${_srcname} 
  mv ${_srcname} ${GOPATH}/src
  cd ${GOPATH}/src/${_srcname}
  dep ensure -v
  go build

package() {
  cd ${GOPATH}/src/${_srcname}
  install -Dm755 lf-r$pkgver "${pkgdir}"/usr/bin/lf
  install -Dm644 ./LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
  install -Dm644 ./ "${pkgdir}"/usr/share/doc/${pkgname}/

obreitwi commented on 2018-09-28 09:31

There are two missing go dependencies, causing the package build to fail if not present.

Workaround is to go get the two dependencies manually beforehand:

go get
go get

Could you add them? Thank you!

benneti commented on 2017-04-20 07:55

Could you add armv7h to the arch list and the sources? I just tested it, works flawless on armv7h with the linux-arm build

anika200 commented on 2017-04-11 13:04

Checksums need updated again, thanks.

Anonymous comment on 2017-01-24 00:39


hav3lock commented on 2017-01-19 01:37

Could you please update the checksums?

Anonymous comment on 2016-11-22 21:02

Sorry for the delay!

I just updated the package to remove go as a make dependency, which in turns removes the need for git. The package is now using a precompiled binary from the official repository.

sekret commented on 2016-10-14 15:08

Please add git to the makedepends. Without it I get this output.

==> Retrieving sources...
-> Found nightly.tar.gz
==> Validating source files with sha256sums...
nightly.tar.gz ... Passed
==> Extracting sources...
-> Extracting nightly.tar.gz with bsdtar
==> Starting prepare()...
go: missing Git command. See
package exec: "git": executable file not found in $PATH
==> ERROR: A failure occurred in prepare().

And the checksum is outdated. I know that it's caused by the nature of nightly builds without any versioning. If you don't intend to update the checksum regularly, you might aswell use 'SKIP'