blob: 4fb6709692a98c013e83a9438f032102710fb8ad (
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
|
# Contributor: pancho horrillo <pancho at pancho dot name>
# Contributor: Bram Swenson <bram at amplified dot work>
# Contributor: Julien Nicoulaud <julien dot nicoulaud at gmail dot com>
pkgname="concourse-fly"
pkgver=7.6.0
pkgrel=1
pkgdesc="A command line interface that runs a build in a container with ATC."
arch=('x86_64')
url="https://concourse-ci.org/fly.html"
license=('Apache')
makedepends=('go-pie' 'git')
provides=("${pkgname}")
conflicts=("${pkgname}" "${pkgname}-bin" "${pkgname}-git")
source=("git+https://github.com/concourse/concourse.git#tag=v${pkgver}")
sha512sums=('SKIP')
prepare() {
mkdir -p gopath/src/github.com/concourse
ln -rTsf $srcdir/concourse/ gopath/src/github.com/concourse/concourse
export GOPATH="$srcdir"/gopath
cd $srcdir/concourse/fly
go get ./...
}
build() {
export GOPATH="$srcdir"/gopath
cd $srcdir/concourse/fly
go build \
-trimpath \
-ldflags "-extldflags ${LDFLAGS}" \
.
}
check() {
export GOPATH="$srcdir"/gopath
cd $srcdir/concourse/fly
go get github.com/onsi/ginkgo/ginkgo
$GOPATH/bin/ginkgo -r -p
}
package() {
cd $srcdir/concourse/fly
install -m 755 -D fly $pkgdir/usr/bin/fly
}
|