upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / arduino-cli / trunk / PKGBUILD
blobf1c48148b7f6ad9bf852965e09eef1935f45953b
1 # Maintainer: Filipe LaĆ­ns (FFY00) <lains@archlinux.org>
3 pkgname=arduino-cli
4 pkgver=0.32.2
5 pkgrel=1
6 arch=('x86_64')
7 pkgdesc='Arduino command line interface'
8 url='https://github.com/arduino/arduino-cli'
9 license=('GPL3')
10 groups=('arduino')
11 depends=('glibc')
12 makedepends=('go' 'git')
13 source=("git+$url.git#tag=$pkgver")
14 sha512sums=('SKIP')
16 build(){
17   cd $pkgname
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'
25   go build \
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)" \
27         -v .
30 package() {
31   install -Dm 755 $pkgname/$pkgname "$pkgdir"/usr/bin/$pkgname