diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 34 |
1 files changed, 29 insertions, 5 deletions
@@ -1,17 +1,41 @@ # Maintainer: pancho horrillo <pancho at pancho dot name> # Contributor: Bram Swenson <bram at amplified dot work> +# Maintainer: Julien Nicoulaud <julien dot nicoulaud at gmail dot com> pkgname='concourse-fly' -pkgver=v3.13.0 -pkgrel=3 +pkgver=v4.2.1 +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') -source=(concourse-fly-${pkgver}::https://github.com/concourse/concourse/releases/download/${pkgver}/fly_linux_amd64) -sha512sums=('394695a16a38f228a784d74777f211a98d3c531c33c3260d4c2155f920c0145ae02ad18e433abffe6b36138e33b19dc4ab46e245468b3da2f935bb307b593fca') +makedepends=('go') +source=("git+https://github.com/concourse/concourse.git#tag=${pkgver}") +sha512sums=('SKIP') provides=('fly') +prepare() { + cd "${srcdir}/concourse" + git submodule update --init --recursive --jobs $(nproc) --recommend-shallow + export GOPATH="$PWD" + go get github.com/onsi/ginkgo/ginkgo +} + +build() { + cd "${srcdir}/concourse" + export GOPATH="$PWD" + cd src/github.com/concourse/fly + go build +} + +check() { + cd "${srcdir}/concourse" + export GOPATH="$PWD" + cd src/github.com/concourse/fly + "$GOPATH"/bin/ginkgo -r +} + package() { - install -Dm755 "concourse-fly-${pkgver}" "$pkgdir/usr/bin/fly" + cd "${srcdir}/concourse" + install -m 755 -D src/github.com/concourse/fly/fly "$pkgdir"/usr/bin/fly } |