Date: Tuesday, June 2, 2020 @ 21:59:12
  Author: nicohood
Revision: 638121

upgpkg: arduino-builder 1.5.3-2 Added Pie support

Modified:
  arduino-builder/trunk/PKGBUILD

----------+
 PKGBUILD |   10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2020-06-02 21:39:23 UTC (rev 638120)
+++ PKGBUILD    2020-06-02 21:59:12 UTC (rev 638121)
@@ -3,13 +3,13 @@
 
 pkgname=arduino-builder
 pkgver=1.5.3
-pkgrel=1
+pkgrel=2
 pkgdesc="A command line tool for compiling Arduino sketches"
 arch=('x86_64')
 url="https://github.com/arduino/arduino-builder";
 license=('GPL')
 depends=('arduino-ctags')
-makedepends=('go-pie' 'git' 'unzip')
+makedepends=('go' 'git' 'unzip')
 optdepends=('arduino-avr-core: AVR core with upstream avr-gcc and avrdude')
 
source=("${pkgname}-${pkgver}.tar.xz::https://github.com/arduino/${pkgname}/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.xz";
                
"${pkgname}-${pkgver}.tar.xz.asc::https://github.com/arduino/${pkgname}/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.xz.asc";)
@@ -19,6 +19,12 @@
 
 build()
 {
+       export CGO_CPPFLAGS="${CPPFLAGS}"
+       export CGO_CFLAGS="${CFLAGS}"
+       export CGO_CXXFLAGS="${CXXFLAGS}"
+       export CGO_LDFLAGS="${LDFLAGS}"
+       export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
+
        cd "${srcdir}/${pkgname}-${pkgver}"
        go build
 

Reply via email to