summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitris Kiziridis2020-04-04 15:47:43 +0300
committerDimitris Kiziridis2020-04-04 15:47:43 +0300
commit4b91aee3879e1dbeb34fe570d18f380aaf6578bc (patch)
treec4a9d6156eda873f0af01cd8ab8dc3a682814be4
parenta03a560c02aa99fa3465f1cff31f2dc72b985648 (diff)
downloadaur-4b91aee3879e1dbeb34fe570d18f380aaf6578bc.tar.gz
sanitize pkgbuild
-rw-r--r--PKGBUILD9
1 files changed, 7 insertions, 2 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 80eed3f6c5d..6702cf50802 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -12,13 +12,18 @@ source=("${pkgname}-${pkgver}.tar.gz::https://github.com/concourse/concourse/arc
makedepends=('go')
md5sums=('98d3458860dfed6bd83278e5fc343508')
-build() {
+prepare() {
cd "${srcdir}/${pkgname}-${pkgver}"
mkdir -p $srcdir/go
export GOPATH="${srcdir}"/go
export PATH=$PATH:$GOPATH/bin
go get -d -v ./...
- cd cmd/concourse
+}
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}/cmd/concourse"
+ export GOPATH="${srcdir}"/go
+ export PATH=$PATH:$GOPATH/bin
go build -v -o "${srcdir}/${pkgname}-bin"
}