arduino: fix version.txt by passing -Dversion= when running ant build
This commit is contained in:
parent
1063948ea7
commit
5258a851f4
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue