blob: 183a63578c905cd3c0d0aaf04438e2e9e1b1fc56 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# Maintainer: Peter Varo <hello@petervaro.com>
pkgname=arduino-cli-git
pkgver=r690.2f07f94
pkgver() {
cd "arduino-cli"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
pkgrel=1
pkgdesc="Arduino command line interface"
arch=(
'x86_64'
'i686'
)
url="https://github.com/arduino/arduino-cli"
license=('GPL3')
groups=('arduino')
makedepends=(
'go'
'git'
)
source=("git://github.com/arduino/arduino-cli.git")
md5sums=('SKIP')
package() {
gopath="$GOPATH"
if [ -z "$gopath" ]
then
gopath="$HOME/go"
fi;
GOPATH="$gopath" GO111MODULE=on go install github.com/arduino/arduino-cli@latest
install -Dm755 "$gopath/bin/arduino-cli" "$pkgdir/usr/bin/arduino-cli"
}
|