arduino: install package_index.json. fixes #3476.

This commit is contained in:
Enno Boland 2015-08-29 14:13:23 +02:00
parent 1512a84ef6
commit 2b6d70a23e
1 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
# Template file for 'arduino' # Template file for 'arduino'
pkgname=arduino pkgname=arduino
version=1.6.5 version=1.6.5
revision=1 revision=2
makedepends="openjdk" makedepends="openjdk"
hostmakedepends="apache-ant unzip ImageMagick" hostmakedepends="apache-ant unzip ImageMagick"
depends="virtual?java-runtime avr-binutils avr-gcc avr-libc avrdude" depends="virtual?java-runtime avr-binutils avr-gcc avr-libc avrdude"
@ -31,7 +31,7 @@ do_build() {
cp bin/libastyle-2.05.1j.so \ cp bin/libastyle-2.05.1j.so \
../../../Arduino-$version/build/linux/work/lib/libastylej.so ../../../Arduino-$version/build/linux/work/lib/libastylej.so
cd ../../../Arduino-$version/build cd ../../../Arduino-$version/build
ant linux-build ant linux-build package-library-index-json-bundle
sed -i -e "s#{runtime\.tools\.[^.]*\.path}#/usr#g" \ sed -i -e "s#{runtime\.tools\.[^.]*\.path}#/usr#g" \
-e "s#\(tools\.avrdude\.config\.path=\).*#\1/etc/avrdude.conf#" \ -e "s#\(tools\.avrdude\.config\.path=\).*#\1/etc/avrdude.conf#" \
linux/work/hardware/arduino/avr/platform.txt \ linux/work/hardware/arduino/avr/platform.txt \