summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD7
2 files changed, 3 insertions, 6 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 3ef9ce9d9e5..a4f1ffcc2fe 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = c2go
pkgdesc = A tool for transpiling C to Go
pkgver = 0.25.9
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/elliotchance/c2go
arch = x86_64
license = MIT
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"
}