diff options
author | Dany Marcoux | 2016-10-06 23:32:04 +0200 |
---|---|---|
committer | Dany Marcoux | 2016-10-06 23:32:04 +0200 |
commit | e1c02d998a78ff4cb0b21927896fbe739f35178a (patch) | |
tree | 87b15950c4bda95f4deacd165d7be67f6a052a87 /PKGBUILD | |
download | aur-e1c02d998a78ff4cb0b21927896fbe739f35178a.tar.gz |
Pre-release nightly
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..289d7723a804 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer: Dany Marcoux <danymarcoux+archlinux@gmail.com> + +pkgname=lf +pkgver=nightly +pkgrel=1 +pkgdesc='lf: A terminal file manager, heavily inspired by ranger' +arch=('i686' 'x86_64') +url='https://github.com/gokcehan/lf' +license=('MIT') # https://github.com/gokcehan/lf/blob/master/LICENSE +makedepends=('go') +options=('!strip' '!emptydirs') +provides=('lf') +source=("https://github.com/gokcehan/lf/archive/$pkgver.tar.gz") +sha256sums=('ec0548d2169ef7748d8e9922c814adc4d445eb4886f6e8a51e90f5fff5ed7d90') + +prepare() { + # Get lf's Go dependencies + mkdir -p go + export GOPATH="$srcdir/go" + go get github.com/nsf/termbox-go +} + +build() { + # Build lf's binary + export GOPATH="$srcdir/go" + cd "lf-$pkgver" + go build +} + +package() { + cd "lf-$pkgver" + install -Dm755 "lf-$pkgver" "$pkgdir/usr/bin/lf" + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/lf/LICENSE" +} |