forked from macports/macports-ports
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 | ||
|
||
PortSystem 1.0 | ||
PortGroup golang 1.0 | ||
|
||
go.setup github.com/arduino/arduino-cli 0.18.1 | ||
revision 0 | ||
|
||
categories devel electronics | ||
license GPL-3 | ||
maintainers {outlook.de:judaew @judaew} openmaintainer | ||
|
||
description Arduino command line tool | ||
long_description \ | ||
Arduino CLI is an all-in-one solution that provides Boards/Library \ | ||
Managers, sketch builder, board detection, uploader, and many other tools \ | ||
needed to use any Arduino compatible board and platform. | ||
homepage https://arduino.github.io/arduino-cli | ||
|
||
checksums rmd160 0a2c4e9f47a60ae6360838ecb2fb7a0b9c548930 \ | ||
sha256 421230a02461ca5917e321fe638ec32a1792b1d2b65e875844d4417676f35367 \ | ||
size 6894716 | ||
|
||
set date_build [clock format [clock seconds] -format %Y-%m-%d] | ||
|
||
# FIXME: This port currently can't be built without allowing go mod to fetch | ||
build.env-delete GOPROXY=off GO111MODULE=off | ||
|
||
build.pre_args -ldflags \ | ||
\'-X ${go.package}/version.versionString=${version} \ | ||
-X ${go.package}/version.commit=macports-build \ | ||
-X ${go.package}/version.date=${date_build}\' | ||
|
||
destroot { | ||
xinstall -m 0755 ${worksrcpath}/${name} ${destroot}${prefix}/bin/ | ||
} |