summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c7834178dcc9bf1e435405703bdc31c992ae0792 (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
36
37
38
39
40
# Maintainer: Oluf Lorenzen <finkregh at mafia-server dot net>
pkgname=go-fac-git
pkgver=r202.b1d27a1
pkgrel=1
epoch=
pkgdesc="Easy-to-use CUI for fixing git conflicts"
arch=('i686' 'x86_64')
url="https://github.com/mkchoi212/fac"
license=('MIT')
groups=()
depends=('')
makedepends=('git' 'go')
optdepends=()
checkdepends=()
provides=('go-fac')
conflicts=('go-fac')
replaces=()
backup=()
options=()
changelog=
install=
noextract=()
_gourl=github.com/mkchoi212/fac

pkgver() {
  GOPATH="$srcdir" go get -d ${_gourl}
  cd "$srcdir/src/${_gourl}"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  GOPATH="$srcdir" go get -fix -v ${_gourl}
}

package() {
  cd "$srcdir"
  install -Dm755 bin/fac "$pkgdir/usr/bin/fac"
  install -Dm644 src/${_gourl}/README.md $pkgdir/usr/share/doc/${pkgname%-*}/README.md
  install -Dm644 src/${_gourl}/LICENSE $pkgdir/usr/share/licenses/${pkgname%-*}/LICENSE
}