1 # Maintainer: Filipe LaĆns (FFY00) <lains@archlinux.org>
7 pkgdesc='Arduino command line interface'
8 url='https://github.com/arduino/arduino-cli'
12 makedepends=('go' 'git')
13 source=("git+$url.git#tag=$pkgver")
19 export CGO_CPPFLAGS="$CPPFLAGS"
20 export CGO_CFLAGS="$CFLAGS"
21 export CGO_CXXFLAGS="$CXXFLAGS"
22 export CGO_LDFLAGS="$LDFLAGS"
23 export GOFLAGS='-buildmode=pie -trimpath -mod=readonly -modcacherw'
26 -ldflags "-linkmode=external -X github.com/arduino/arduino-cli/version.versionString=$pkgver-arch -X github.com/arduino/arduino-cli/version.commit=$(git rev-parse HEAD)" \
31 install -Dm 755 $pkgname/$pkgname "$pkgdir"/usr/bin/$pkgname