blob: 1a300b07b8e683a7069a7f5f04b35b78a966dcbf (
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
41
42
43
44
45
46
47
48
49
50
51
|
# Maintainer: pancho horrillo <pancho at pancho dot name>
# Maintainer: Bram Swenson <bram at amplified dot work>
# Contributor: Marti Raudsepp <marti at juffo dot org>
_pkgname='concourse-fly'
pkgname="${_pkgname}-git"
pkgver=3.12.1.rc.8.r0.gbb37e22
pkgrel=2
pkgdesc='Command line interface to the Concourse continuous integration tool'
arch=('x86_64')
url='https://concourse-ci.org/fly.html'
license=('Apache')
makedepends=('go')
checkdepends=()
provides=("${_pkgname}")
conflicts=("${_pkgname}")
_srcname='concourse'
source=("git+https://github.com/concourse/${_srcname}.git")
sha512sums=('SKIP')
prepare() {
cd "${_srcname}"
git submodule update --init --recursive
export GOPATH="$PWD"
go get github.com/onsi/ginkgo/ginkgo
}
pkgver() {
cd "${_srcname}"
cd src/github.com/concourse/fly
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "${_srcname}"
export GOPATH="$PWD"
cd src/github.com/concourse/fly
go build
}
check() {
cd "${_srcname}"
export GOPATH="$PWD"
cd src/github.com/concourse/fly
"$GOPATH"/bin/ginkgo -r
}
package() {
cd "${_srcname}"
install -m 755 -D src/github.com/concourse/fly/fly "$pkgdir"/usr/bin/fly
}
|