[arch-commits] Commit in arduino-cli/repos (2 files)
Filipe Laíns
ffy00 at archlinux.org
Wed Aug 29 22:21:02 UTC 2018
Date: Wednesday, August 29, 2018 @ 22:21:02
Author: ffy00
Revision: 375385
archrelease: copy trunk to community-x86_64
Added:
arduino-cli/repos/community-x86_64/
arduino-cli/repos/community-x86_64/PKGBUILD
(from rev 375384, arduino-cli/trunk/PKGBUILD)
----------+
PKGBUILD | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
Copied: arduino-cli/repos/community-x86_64/PKGBUILD (from rev 375384, arduino-cli/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2018-08-29 22:21:02 UTC (rev 375385)
@@ -0,0 +1,31 @@
+# $Id$
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+pkgname=arduino-cli
+_pkgver=0.2.0-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')
+depends=('glibc')
+makedepends=('go-pie' 'git')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/arduino/arduino-cli/archive/$_pkgver.tar.gz")
+sha512sums=('7feca1ad586480d0db3c7e421e0f2962fc0408aeb3b96541ca56f17b91ed34d91fac1dd2ec7f6ada48f2219b7319f7d92030f630905827263c297915d3da7dc8')
+
+build() {
+ cd $pkgname-$_pkgver
+
+ export GOPATH="$srcdir"/gopath
+ export GOBIN="$GOPATH"/bin
+ mkdir -p $GOBIN
+
+ go get
+ go install
+}
+
+package() {
+ install -Dm 755 gopath/bin/arduino-cli-$_pkgver "$pkgdir"/usr/bin/arduino-cli
+}
More information about the arch-commits
mailing list