# Contributor: Leo # Maintainer: Miles Alan pkgname=lf pkgver=24 pkgrel=0 pkgdesc="Terminal filemanager written in Go with vim-style keybindings" options="chmod-clean net" url="https://github.com/gokcehan/lf" license="MIT" arch="all" makedepends="go" subpackages=" $pkgname-doc $pkgname-bash-completion $pkgname-zsh-completion $pkgname-fish-completion " source="$pkgname-$pkgver.tar.gz::https://github.com/gokcehan/lf/archive/r$pkgver.tar.gz" builddir="$srcdir/lf-r$pkgver" export GOPATH="$srcdir" export GOCACHE="$srcdir" export GOTMPDIR="$srcdir" build() { go build -v -o bin/$pkgname } check() { go test ./... } package() { install -Dm0755 bin/$pkgname -t "$pkgdir"/usr/bin # Manpages install -Dm0644 lf.1 "$pkgdir"/usr/share/man/man1/lf.1 # .desktop file for menus install -Dm0644 lf.desktop -t "$pkgdir"/usr/share/applications # Shell completions install -Dm0644 etc/lf.bash "$pkgdir"/usr/share/bash-completion/completions/lf install -Dm0644 etc/lf.zsh "$pkgdir"/usr/share/zsh/site-functions/_lf install -Dm0644 etc/lf.fish -t "$pkgdir"/usr/share/fish/completions } sha512sums=" 272a007285a189fa92abf0a890277f9788ff1fd68e82ef1db2780d0a77ca97a0e533677f9256f8a055e39b234963e3d5eb8c6341588a2d7976cc1f96f1f3cdf3 lf-24.tar.gz "