summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitris Kiziridis2020-04-02 01:51:59 +0300
committerDimitris Kiziridis2020-04-02 01:51:59 +0300
commit4fae88990f2f6a4b49f98bc8005207293d73595d (patch)
treec17f8226aeab1d9015527d4cf52f8af81e3cab82
parent6eb1d23cc4e2c6cb8154d270b04993f5b547591c (diff)
downloadaur-4fae88990f2f6a4b49f98bc8005207293d73595d.tar.gz
Update to 6.0.0
-rw-r--r--PKGBUILD36
-rwxr-xr-xbuild19
2 files changed, 24 insertions, 31 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 6f398822a34..80eed3f6c5d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,17 +1,29 @@
-# Maintainer: Bram Swenson <bram@amplified.work>
+# Maintainer: Dimitris Kiziridis <ragouel at outlook dot com>
+# Contributor: Bram Swenson <bram@amplified.work>
-pkgname='concourse'
-pkgver=v3.5.0
+pkgname=concourse
+pkgver=6.0.0
pkgrel=1
-pkgdesc="Concourse is a pipeline-based CI system written in Go."
-arch=(x86_64)
-url="https://concourse.ci/introduction.html"
-license=('Apache')
-source=(concourse-${pkgver}::https://github.com/concourse/concourse/releases/download/${pkgver}/concourse_linux_amd64)
-sha512sums=('2fa82213e009dea8f0369aea4a330c33a955c1c27421926211c9d43c8f69dab024014174b534b9d494f5eaad48dce3621dee99ce1f887c7a12de36fb905d5b3e')
-provides=('concourse')
-depends=('linux-userns')
+pkgdesc="Concourse is a container-based continuous thing-doer written in Go and Elm"
+arch=('x86_64')
+url='https://concourse-ci.org'
+license=('Apache-2.0')
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/concourse/concourse/archive/v${pkgver}.tar.gz")
+makedepends=('go')
+md5sums=('98d3458860dfed6bd83278e5fc343508')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ mkdir -p $srcdir/go
+ export GOPATH="${srcdir}"/go
+ export PATH=$PATH:$GOPATH/bin
+ go get -d -v ./...
+ cd cmd/concourse
+ go build -v -o "${srcdir}/${pkgname}-bin"
+}
package() {
- install -Dm755 "concourse-${pkgver}" "$pkgdir/usr/bin/concourse"
+ install -Dm755 "${pkgname}-bin" "${pkgdir}/usr/bin/concourse"
+ install -Dm644 "${srcdir}/${pkgname}-${pkgver}"/LICENSE* "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ go clean -modcache #Remove go libraries
}
diff --git a/build b/build
deleted file mode 100755
index 273b12b3889..00000000000
--- a/build
+++ /dev/null
@@ -1,19 +0,0 @@
-#!/usr/bin/env bash
-
-make_srcinfo () {
- makepkg --printsrcinfo > .SRCINFO
-}
-
-build () {
- makepkg -s "${@}"
-}
-
-clean () {
- rm -rf *.pkg.tar.xz *.tar.gz ; rm -rf ./pkg ./src ; true
-}
-
-main () {
- clean && build "${@}" && make_srcinfo
-}
-
-main "$@"