diff --git a/srcpkgs/arduino/patches/disable-astyle-download.patch b/srcpkgs/arduino/patches/disable-astyle-download.patch
deleted file mode 100644
index c7b865d7271..00000000000
--- a/srcpkgs/arduino/patches/disable-astyle-download.patch
+++ /dev/null
@@ -1,19 +0,0 @@
---- build/build.xml.orig 2015-12-15 10:07:28.947037415 +0100
-+++ build/build.xml 2015-12-15 10:07:41.416037987 +0100
-@@ -836,16 +836,6 @@
-
-
-
--
--
--
--
--
--
--
--
--
--
-
-
-
diff --git a/srcpkgs/arduino/patches/disable-dependency-build.patch b/srcpkgs/arduino/patches/disable-dependency-build.patch
new file mode 100644
index 00000000000..390da3c3695
--- /dev/null
+++ b/srcpkgs/arduino/patches/disable-dependency-build.patch
@@ -0,0 +1,85 @@
+--- build/build.xml.orig 2016-03-27 18:18:08.681227463 -0700
++++ build/build.xml 2016-03-27 18:19:28.096229351 -0700
+@@ -425,17 +425,6 @@
+
+
+
+-
+-
+-
+-
+-
+-
+-
+-
+-
+-
+-
+
+
+
+@@ -625,15 +614,6 @@
+
+
+
+-
+-
+-
+-
+-
+-
+-
+-
+-
+
+
+
+@@ -670,15 +650,6 @@
+
+
+
+-
+-
+-
+-
+-
+-
+-
+-
+-
+
+
+
+@@ -702,15 +673,6 @@
+
+
+
+-
+-
+-
+-
+-
+-
+-
+-
+-
+
+
+
+@@ -898,16 +860,6 @@
+
+
+
+-
+-
+-
+-
+-
+-
+-
+-
+-
+-
+
+
+
diff --git a/srcpkgs/arduino/template b/srcpkgs/arduino/template
index 96fd205fd4b..e7b0aeb1036 100644
--- a/srcpkgs/arduino/template
+++ b/srcpkgs/arduino/template
@@ -1,9 +1,8 @@
# Template file for 'arduino'
pkgname=arduino
-version=1.6.7
+version=1.6.8
revision=1
-makedepends="openjdk"
-hostmakedepends="apache-ant unzip ImageMagick"
+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"
maintainer="Enno Boland "
@@ -12,7 +11,7 @@ homepage="http://arduino.cc/"
distfiles="
https://github.com/arduino/Arduino/archive/${version}.tar.gz
${SOURCEFORGE_SITE}/astyle/astyle_2.05.1_linux.tar.gz"
-checksum="fbbbe3bad6d85fe3243ecdb5248b52e3b609cc03d649a2e16684194d4f9db85f
+checksum="5b2e8b3115000986f12ebdc126162d22c2dc85b3ca9732b8f8966e6dcdf2edad
fbdfc6f1966a972d19a215927266c76d4183eee235ed1e2bd7ec551c2a270eac"
nostrip=yes
wrksrc=Arduino-$version
@@ -30,7 +29,12 @@ do_build() {
cp bin/libastyle-2.05.1j.so \
../../../Arduino-$version/build/linux/work/lib/libastylej.so
cd ../../../Arduino-$version/build
- ant linux-build package-library-index-json-bundle
+ case "$XBPS_TARGET_MACHINE" in
+ i686*) LINUX_BUILD=linux32-build ;;
+ x86_64*) LINUX_BUILD=linux64-build ;;
+ *) LINUX_BUILD=linux-build ;;
+ esac
+ ant $LINUX_BUILD package-library-index-json-bundle
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