summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1066904e5a836ef45474768107a39522eb08e21a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Maintainer: Ian Beringer <ian@ianberinger.com>

pkgname=lf-git
_pkgname=lf
pkgver=r27.19561f6
pkgrel=1
license=('GPL2')
pkgdesc='lf is a terminal file manager written in Go'
makedepends=("git" "go>=1.6")
arch=("i686" "x86_64")
url='https://github.com/gokcehan/lf'
source=("${_pkgname}::git+https://github.com/gokcehan/lf.git")
sha256sums=('SKIP')
provides=("lf")
conflicts=("lf")

pkgver() {
	cd "${srcdir}/${_pkgname}"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
	cd "${srcdir}/${_pkgname}"
	go build
}

package() {
	cd "${srcdir}/${_pkgname}"
	install -Dm755 ./lf					${pkgdir}/usr/bin/lf
  install -Dm644 ./LICENSE   	${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE
  install -Dm644 ./README.md 	${pkgdir}/usr/share/doc/${_pkgname}/README
}