#BUILD_TARGET=darwin
#BUILD_TARGET=debian_i386
#BUILD_TARGET=debian_amd64
+#BUILD_TARGET=debian_armhf
#BUILD_TARGET=freebsd
##Do we need to create the final archive
echo "$0 win32"
echo "$0 debian_i386"
echo "$0 debian_amd64"
+ echo "$0 debian_armhf"
echo "$0 darwin"
echo "$0 freebsd"
exit 0
exit
fi
+#############################
+# Debian armhf .deb
+#############################
+
+if [ "$BUILD_TARGET" = "debian_armhf" ]; then
+ export CXX="g++"
+ if [ ! -d "Power" ]; then
+ git clone https://github.com/GreatFruitOmsk/Power
+ else
+ cd Power
+ git pull
+ cd ..
+ fi
+ rm -rf CuraEngine
+ git clone ${CURA_ENGINE_REPO}
+ if [ $? != 0 ]; then echo "Failed to clone CuraEngine"; exit 1; fi
+ make -C CuraEngine VERSION=${BUILD_NAME}
+ if [ $? != 0 ]; then echo "Failed to build CuraEngine"; exit 1; fi
+ rm -rf scripts/linux/${BUILD_TARGET}/usr/share/cura
+ mkdir -p scripts/linux/${BUILD_TARGET}/usr/share/cura
+ cp -a Cura scripts/linux/${BUILD_TARGET}/usr/share/cura/
+ cp -a resources scripts/linux/${BUILD_TARGET}/usr/share/cura/
+ cp -a plugins scripts/linux/${BUILD_TARGET}/usr/share/cura/
+ cp -a CuraEngine/build/CuraEngine scripts/linux/${BUILD_TARGET}/usr/share/cura/
+ cp scripts/linux/cura.py scripts/linux/${BUILD_TARGET}/usr/share/cura/
+ cp -a Power/power scripts/linux/${BUILD_TARGET}/usr/share/cura/
+ echo $BUILD_NAME > scripts/linux/${BUILD_TARGET}/usr/share/cura/Cura/version
+ sudo chown root:root scripts/linux/${BUILD_TARGET} -R
+ sudo chmod 755 scripts/linux/${BUILD_TARGET}/usr -R
+ sudo chmod 755 scripts/linux/${BUILD_TARGET}/DEBIAN -R
+ cd scripts/linux
+ dpkg-deb --build ${BUILD_TARGET} $(dirname ${TARGET_DIR})/cura_${BUILD_NAME}-${BUILD_TARGET}.deb
+ sudo chown `id -un`:`id -gn` ${BUILD_TARGET} -R
+ exit
+fi
+
#############################
# Rest
#############################
--- /dev/null
+Package: cura
+Version: 14.01
+Section: misc
+Priority: optional
+Architecture: armhf
+Essential: no
+Depends: python-wxgtk2.8, python-opengl, python-serial, python-numpy
+Maintainer: Daid <daid303@gmail.com>
+Provides: cura
+Installed-Size: 10000
+Description: Cura is a full software solution for 3D printing,
+ aimed at RepRaps and the Ultimaker. It's free software payed for
+ and maintained by Ultimaker.
+