From 5258a851f44e2de7b7d7dc78bbf3bbde45527259 Mon Sep 17 00:00:00 2001 From: Andy Cobaugh Date: Sun, 5 Aug 2018 19:36:43 -0400 Subject: [PATCH] arduino: fix version.txt by passing -Dversion= when running ant build --- srcpkgs/arduino/template | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/srcpkgs/arduino/template b/srcpkgs/arduino/template index 5c0dbb519d..1ab7eb1d35 100644 --- a/srcpkgs/arduino/template +++ b/srcpkgs/arduino/template @@ -1,7 +1,7 @@ # Template file for 'arduino' pkgname=arduino version=1.8.5 -revision=1 +revision=2 hostmakedepends="apache-ant unzip ImageMagick openjdk" depends="virtual?java-runtime avr-binutils avr-gcc avr-libc avrdude" short_desc="IDE for the arduino open-source electronics prototyping platform" @@ -34,7 +34,7 @@ do_build() { x86_64*) LINUX_BUILD=linux64-build ;; *) LINUX_BUILD=linux-build ;; esac - ant $LINUX_BUILD + ant -Dversion=${version} $LINUX_BUILD sed -i -e "s#{runtime\.tools\.[^.]*\.path}#/usr#g" \ -e "s#\(tools\.avrdude\.config\.path=\).*#\1/etc/avrdude.conf#" \ linux/work/hardware/arduino/avr/platform.txt