summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorDimitris Kiziridis2020-03-16 07:13:45 +0200
committerDimitris Kiziridis2020-03-16 07:13:45 +0200
commitb6681c9192cbf71872bda64e9542be220269b1a9 (patch)
treefc90328b6d77e0d13bbb6e0edaa857eb29079e45 /PKGBUILD
parentd43a4152a044c195f402af8d601a0cd1c7bb434c (diff)
downloadaur-b6681c9192cbf71872bda64e9542be220269b1a9.tar.gz
bugfix in PKGBUILD
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD7
1 files changed, 2 insertions, 5 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 61e88bca826..f4491356ec3 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=c2go
pkgver=0.25.9
-pkgrel=1
+pkgrel=2
pkgdesc="A tool for transpiling C to Go"
arch=('x86_64')
url='https://github.com/elliotchance/c2go'
@@ -11,15 +11,12 @@ makedepends=('go')
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
md5sums=('c1ac9bf2637725238711070b2a7228d1')
-prepare() {
+build() {
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}"
go build -v -o "../c2go-bin"
}