summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorDimitris Kiziridis2020-04-04 15:32:30 +0300
committerDimitris Kiziridis2020-04-04 15:32:30 +0300
commit14a86761bd1cf61de492fb9f3e2f533362a85dea (patch)
treeef4a618f79bf09ebcf1f07fdb2ab7e73de648ca5 /PKGBUILD
parentb484221ce23bd3b60d6618ca4df17c0b694b3bf8 (diff)
downloadaur-14a86761bd1cf61de492fb9f3e2f533362a85dea.tar.gz
sanitize pkgbuild
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD10
1 files changed, 8 insertions, 2 deletions
diff --git a/PKGBUILD b/PKGBUILD
index fb0b9bfd46b..843b5e6fc51 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=c2go
pkgver=0.25.9
-pkgrel=3
+pkgrel=4
pkgdesc="A tool for transpiling C to Go"
arch=('x86_64')
url='https://github.com/elliotchance/c2go'
@@ -11,12 +11,18 @@ makedepends=('go')
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
md5sums=('c1ac9bf2637725238711070b2a7228d1')
-build() {
+prepare() {
cd "${srcdir}/${pkgname}-${pkgver}"
mkdir -p $srcdir/go
export GOPATH="${srcdir}"/go
export PATH=$PATH:$GOPATH/bin
go get -d -v ./...
+}
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ export GOPATH="${srcdir}"/go
+ export PATH=$PATH:$GOPATH/bin
go build -v -o "../c2go-bin"
}