[arch-commits] Commit in arduino-cli/trunk (PKGBUILD)

Morten Linderud foxboron at archlinux.org
Sun Jul 5 15:54:37 UTC 2020


    Date: Sunday, July 5, 2020 @ 15:54:37
  Author: foxboron
Revision: 657885

upgpkg: arduino-cli 0.11.0-2

Updated to follow the new go package guidelines

Modified:
  arduino-cli/trunk/PKGBUILD

----------+
 PKGBUILD |   13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-07-05 15:52:08 UTC (rev 657884)
+++ PKGBUILD	2020-07-05 15:54:37 UTC (rev 657885)
@@ -2,22 +2,25 @@
 
 pkgname=arduino-cli
 pkgver=0.11.0
-pkgrel=1
+pkgrel=2
 arch=('x86_64')
 pkgdesc='Arduino command line interface'
 url='https://github.com/arduino/arduino-cli'
 license=('GPL3')
 groups=('arduino')
-makedepends=('go-pie' 'git')
+makedepends=('go' 'git')
 source=("git+$url.git#tag=$pkgver")
 sha512sums=('SKIP')
 
 build(){
   cd $pkgname
-
+  export CGO_CPPFLAGS="${CPPFLAGS}"
+  export CGO_CFLAGS="${CFLAGS}"
+  export CGO_CXXFLAGS="${CXXFLAGS}"
+  export CGO_LDFLAGS="${LDFLAGS}"
+  export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
   go build \
-        -trimpath \
-        -ldflags "-X github.com/arduino/arduino-cli/version.versionString=$pkgver-arch -X github.com/arduino/arduino-cli/version.commit=$(git rev-parse HEAD) -extldflags $LDFLAGS" \
+        -ldflags "-X github.com/arduino/arduino-cli/version.versionString=$pkgver-arch -X github.com/arduino/arduino-cli/version.commit=$(git rev-parse HEAD)" \
         -v .
 }
 



More information about the arch-commits mailing list