summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0a0883f2c863d4f0f1cac72e19d7cfcebb072347 (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
33
34
35
# Maintainer: Ian Beringer <ian@ianberinger.com>

pkgname=lf-git
_pkgname=lf
pkgver=r107.986cc88
pkgrel=1
license=('MIT')
pkgdesc='lf is a terminal file manager written in Go'
depends=("glibc")
makedepends=("git" "go>=1.6")
arch=("i686" "x86_64")
_gourl='github.com/gokcehan/lf'
url="https://${_gourl}"
source=("${_pkgname}::git+${url}.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}"
	GOPATH="${srcdir}/go" go get -u "${_gourl}"
	GOPATH="${srcdir}/go" 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.md"
}