blob: 5d1d13aa4d93f2f96960b0ca6d70b2d61046c221 (
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
|
# Maintainer: Sebastian Reuße <seb@wirrsal.net>
pkgname=gommit-git
_gitname=gommit
pkgver=2.0.0.r15.g522ce30
pkgrel=1
pkgdesc="Enforce git message commit consistency"
arch=(x86_64 i686)
url=https://github.com/antham/gommit
license=(Apache)
makedepends=(git go)
depends=(glibc)
provides=(gommit)
conflicts=(gommit)
source=(git+https://github.com/antham/gommit)
md5sums=(SKIP)
pkgver() {
cd "$_gitname"
git describe --long --tags \
| sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//;'
}
build() {
cd "$srcdir/$_gitname"
export GOPATH="$srcdir/gopath"
[[ -d "$GOPATH" ]] || mkdir "$srcdir"/gopath
go get -d
# go build complains because we already have a directory
# with the output binary name, so use another name instead.
go build -o gommit.bin
}
package() {
cd "$srcdir/$_gitname"
install -Dm755 gommit.bin "$pkgdir/usr/bin/gommit"
}
|