[arch-commits] Commit in arduino-cli/repos/community-x86_64 (PKGBUILD PKGBUILD)

Filipe Laíns ffy00 at archlinux.org
Wed Aug 14 14:07:59 UTC 2019


    Date: Wednesday, August 14, 2019 @ 14:07:59
  Author: ffy00
Revision: 499206

archrelease: copy trunk to community-x86_64

Added:
  arduino-cli/repos/community-x86_64/PKGBUILD
    (from rev 499205, arduino-cli/trunk/PKGBUILD)
Deleted:
  arduino-cli/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |   88 ++++++++++++++++++++++++++++++++++---------------------------
 1 file changed, 50 insertions(+), 38 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2019-08-14 14:07:45 UTC (rev 499205)
+++ PKGBUILD	2019-08-14 14:07:59 UTC (rev 499206)
@@ -1,38 +0,0 @@
-# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
-
-pkgname=arduino-cli
-_pkgver=0.3.6-alpha.preview
-pkgver=${_pkgver//-/.}
-pkgrel=1
-arch=('x86_64')
-pkgdesc='Arduino command line interface'
-url='https://github.com/arduino/arduino-cli'
-license=('GPL3')
-groups=('arduino')
-makedepends=('go-pie' 'git')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/arduino/arduino-cli/archive/$_pkgver.tar.gz")
-sha512sums=('40c16aa8d481792daac64d9712f8eb1b175b656c64ebe6fc0f587839728862f3504e5d2f5cd66f6a849d79c560bb1048edd2ed9d98add5ad3c620d8e6221d05c')
-
-prepare(){
-  export GOPATH="$srcdir"/gopath
-
-  mkdir -p "$GOPATH"/src/github.com/arduino
-  ln -rTsf "$pkgname-$_pkgver" "$GOPATH"/src/github.com/arduino/arduino-cli
-  cd "$GOPATH"/src/github.com/arduino/arduino-cli
-}
-
-build(){
-  export GOPATH="$srcdir"/gopath
-  cd "$GOPATH"/src/github.com/arduino/arduino-cli
-
-  go build \
-  	-gcflags "all=-trimpath=$GOPATH" \
-  	-asmflags "all=-trimpath=$GOPATH" \
-  	-ldflags "-extldflags $LDFLAGS" \
-  	.
-}
-
-package() {
-  install -Dm 755 $pkgname-$_pkgver/$pkgname "$pkgdir"/usr/bin/$pkgname
-}
-

Copied: arduino-cli/repos/community-x86_64/PKGBUILD (from rev 499205, arduino-cli/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2019-08-14 14:07:59 UTC (rev 499206)
@@ -0,0 +1,50 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+pkgname=arduino-cli
+pkgver=0.4.0
+pkgrel=1
+arch=('x86_64')
+pkgdesc='Arduino command line interface'
+url='https://github.com/arduino/arduino-cli'
+license=('GPL3')
+groups=('arduino')
+#checkdepends=('unzip')
+makedepends=('go-pie' 'git')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
+sha512sums=('a9266ba0e674ac6c7222a6666ac5f54581b447ed6a88924b8c306dcee7769fa903ff32b0664d24037fb8a694598a3e34461d66853ca3ac97cf94a0ffb31c90a0')
+
+prepare(){
+  export GOPATH="$srcdir"/gopath
+
+  mkdir -p "$GOPATH"/src/github.com/arduino
+  ln -rTsf "$pkgname-$pkgver" "$GOPATH"/src/github.com/arduino/arduino-cli
+  cd "$GOPATH"/src/github.com/arduino/arduino-cli
+
+  export GO111MODULE=on
+
+  go mod vendor
+  go mod download
+}
+
+build(){
+  export GOPATH="$srcdir"/gopath
+  cd "$GOPATH"/src/github.com/arduino/arduino-cli
+
+  go build \
+  	-gcflags "all=-trimpath=$GOPATH" \
+  	-asmflags "all=-trimpath=$GOPATH" \
+  	-ldflags "-extldflags $LDFLAGS" \
+  	-v .
+}
+
+#check() {
+#  export GOPATH="$srcdir"/gopath
+#  cd "$GOPATH"/src/github.com/arduino/arduino-cli
+#
+#  go test .
+#}
+
+package() {
+  install -Dm 755 $pkgname-$pkgver/$pkgname "$pkgdir"/usr/bin/$pkgname
+}
+


More information about the arch-commits mailing list