[arch-commits] Commit in arduino-builder/repos (4 files)

NicoHood nicohood at archlinux.org
Sun Oct 30 07:47:41 UTC 2016


    Date: Sunday, October 30, 2016 @ 07:47:40
  Author: nicohood
Revision: 193984

archrelease: copy trunk to community-i686, community-x86_64

Added:
  arduino-builder/repos/community-i686/
  arduino-builder/repos/community-i686/PKGBUILD
    (from rev 193983, arduino-builder/trunk/PKGBUILD)
  arduino-builder/repos/community-x86_64/
  arduino-builder/repos/community-x86_64/PKGBUILD
    (from rev 193983, arduino-builder/trunk/PKGBUILD)

---------------------------+
 community-i686/PKGBUILD   |   41 +++++++++++++++++++++++++++++++++++++++++
 community-x86_64/PKGBUILD |   41 +++++++++++++++++++++++++++++++++++++++++
 2 files changed, 82 insertions(+)

Copied: arduino-builder/repos/community-i686/PKGBUILD (from rev 193983, arduino-builder/trunk/PKGBUILD)
===================================================================
--- community-i686/PKGBUILD	                        (rev 0)
+++ community-i686/PKGBUILD	2016-10-30 07:47:40 UTC (rev 193984)
@@ -0,0 +1,41 @@
+# Maintainer: NicoHood <aur {at} nicohood {dot} de>
+
+pkgname=arduino-builder
+pkgver=1.3.21
+pkgrel=1
+pkgdesc="A command line tool for compiling Arduino sketches"
+arch=('i686' 'x86_64' 'armv6h' 'armv7h')
+url="https://github.com/arduino/arduino-builder"
+license=('GPL')
+depends=('')
+makedepends=('go' 'git' 'unzip')
+optdepends=('ctags')
+options=(!strip)
+source=("https://github.com/arduino/arduino-builder/archive/${pkgver}.tar.gz")
+sha512sums=('9d724585294f1107fb0d1f55cfbbe831a15e11460d5152329fb76e2794ac8b98f62b0c149cb8bb6de8cbe6090222c0f199478f7030c6505f49561e891a27ed04')
+
+build() {
+	cd "${srcdir}/${pkgname}-${pkgver}"
+	export GOPATH="${srcdir}/${pkgname}-${pkgver}"
+	go get -fix github.com/go-errors/errors
+	go get -fix github.com/stretchr/testify
+	go get -fix github.com/jstemmer/go-junit-report
+	go build arduino.cc/arduino-builder
+}
+
+check() {
+	# Test will download ~1GB of testfiles
+    echo "Running check() for the first time might take a while as it downloads ~1GB of testfiles. Skip with --nocheck"
+	export GOPATH="${srcdir}/${pkgname}-${pkgver}"
+	go test -timeout 60m arduino.cc/...
+}
+
+package() {
+	cd "${srcdir}/${pkgname}-${pkgver}"
+
+	# Install main tool
+	install -Dm755 "arduino-builder" "${pkgdir}/usr/bin/arduino-builder"
+
+	# Add documentation
+	install -Dm644 -t "${pkgdir}/usr/share/doc/${pkgname}" README.md
+}

Copied: arduino-builder/repos/community-x86_64/PKGBUILD (from rev 193983, arduino-builder/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2016-10-30 07:47:40 UTC (rev 193984)
@@ -0,0 +1,41 @@
+# Maintainer: NicoHood <aur {at} nicohood {dot} de>
+
+pkgname=arduino-builder
+pkgver=1.3.21
+pkgrel=1
+pkgdesc="A command line tool for compiling Arduino sketches"
+arch=('i686' 'x86_64' 'armv6h' 'armv7h')
+url="https://github.com/arduino/arduino-builder"
+license=('GPL')
+depends=('')
+makedepends=('go' 'git' 'unzip')
+optdepends=('ctags')
+options=(!strip)
+source=("https://github.com/arduino/arduino-builder/archive/${pkgver}.tar.gz")
+sha512sums=('9d724585294f1107fb0d1f55cfbbe831a15e11460d5152329fb76e2794ac8b98f62b0c149cb8bb6de8cbe6090222c0f199478f7030c6505f49561e891a27ed04')
+
+build() {
+	cd "${srcdir}/${pkgname}-${pkgver}"
+	export GOPATH="${srcdir}/${pkgname}-${pkgver}"
+	go get -fix github.com/go-errors/errors
+	go get -fix github.com/stretchr/testify
+	go get -fix github.com/jstemmer/go-junit-report
+	go build arduino.cc/arduino-builder
+}
+
+check() {
+	# Test will download ~1GB of testfiles
+    echo "Running check() for the first time might take a while as it downloads ~1GB of testfiles. Skip with --nocheck"
+	export GOPATH="${srcdir}/${pkgname}-${pkgver}"
+	go test -timeout 60m arduino.cc/...
+}
+
+package() {
+	cd "${srcdir}/${pkgname}-${pkgver}"
+
+	# Install main tool
+	install -Dm755 "arduino-builder" "${pkgdir}/usr/bin/arduino-builder"
+
+	# Add documentation
+	install -Dm644 -t "${pkgdir}/usr/share/doc/${pkgname}" README.md
+}



More information about the arch-commits mailing list