summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4f0fa3cbd445d4d7424de94f9a11083c29d70679 (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: Reto Brunner <brunnre8@gmail.com>
pkgname=gonvim-git
pkgver=r97.6f278c2
pkgrel=2
pkgdesc="Neovim GUI written in Golang"
arch=('any')
url="https://github.com/dzhou121/gonvim"
license=('unknown')
depends=('neovim' 'gtk3')
makedepends=('git' 'go') # 'bzr', 'git', 'mercurial' or 'subversion'
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
options=()
#install=
source=('git+https://github.com/dzhou121/gonvim#branch=master')
md5sums=('SKIP')

pkgver() {
	cd "$srcdir/${pkgname%-git}"

	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
    cd ${pkgname%-git}
    GOPATH="$srcdir" TMPDIR=/tmp go get -u -v github.com/dzhou121/${pkgname%-git}/...
}

package() {
    cd ${pkgname%-git}
	install -Dm 755 "$srcdir/bin/${pkgname%-git}" -t "$pkgdir/usr/bin/"
}