Date: Thursday, October 26, 2017 @ 13:25:28
  Author: arodseth
Revision: 264511

upgpkg: grumpy 0.1-3

Modified:
  grumpy/trunk/PKGBUILD

----------+
 PKGBUILD |   20 ++++++++++++++------
 1 file changed, 14 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2017-10-26 13:25:11 UTC (rev 264510)
+++ PKGBUILD    2017-10-26 13:25:28 UTC (rev 264511)
@@ -3,17 +3,25 @@
 
 pkgname=grumpy
 pkgver=0.1
-pkgrel=2
+pkgrel=3
 pkgdesc='Python to Go transpiler and Python interpreter'
-arch=('x86_64' 'i686')
+arch=('x86_64')
+license=('Apache')
 url='https://github.com/google/grumpy'
-depends=('go' 'python2')
-makedepends=('go' 'python2' 'git')
-license=('Apache')
 options=('!strip')
-source=("git+https://github.com/google/grumpy.git#commit=401813edf5da8807418711122eaf12a18fb6bd64";)
+depends=('python2')
+makedepends=('go-pie' 'git')
+optdepend=('go: compile sources with Go'
+           'go-pie: compile sources with Go (PIE)'
+           'gcc-go: compile sources with gcc-go')
+source=("git+https://github.com/google/grumpy.git#commit=2c8ff4b377ebb6455cf81ef8b7a4ec6cd435ed61";)
 md5sums=('SKIP')
 
+prepare() {
+  # https://github.com/google/grumpy/issues/378
+  find "$srcdir" -type f -name "*.go" -exec sed -i 's:const _ =:const _x =:g' 
'{}' \;
+}
+
 build() {
   make -C grumpy
 }

Reply via email to