2017-10-27 20:46:27 +02:00
|
|
|
|
# Tanım: Arduino prototiplendirme kartı için geliştirici kiti (SDK).
|
2016-09-13 04:12:18 +02:00
|
|
|
|
# URL: https://github.com/arduino/Arduino
|
2017-10-27 20:46:27 +02:00
|
|
|
|
# Paketçi: milisarge
|
|
|
|
|
# Gerekler: gtk2 desktop-file-utils shared-mime-info openjdk avrdude apache-ant unzip
|
2016-09-13 04:12:18 +02:00
|
|
|
|
|
2017-10-28 14:10:23 +02:00
|
|
|
|
isim=arduino
|
|
|
|
|
surum=1.6.11
|
|
|
|
|
devir=1
|
|
|
|
|
kaynak=(https://github.com/arduino/Arduino/archive/$surum.tar.gz
|
2016-09-13 04:12:18 +02:00
|
|
|
|
arduino.sh)
|
2017-01-30 23:55:06 +01:00
|
|
|
|
|
2017-10-27 23:59:41 +02:00
|
|
|
|
derle() {
|
2017-10-28 14:10:23 +02:00
|
|
|
|
cd "Arduino-${surum}/build"
|
2016-09-13 04:12:18 +02:00
|
|
|
|
export PATH=/opt/OpenJDK-8u60-bin/jre/bin/:$PATH
|
|
|
|
|
ant clean build
|
|
|
|
|
|
2017-10-28 14:10:23 +02:00
|
|
|
|
cd ${SRC}/"Arduino-${surum}/build/linux/work"
|
2016-09-13 04:12:18 +02:00
|
|
|
|
|
|
|
|
|
# Create directories
|
|
|
|
|
install -dm755 "${PKG}/usr/share/"{doc,icons/hicolor,applications,mime/packages}
|
|
|
|
|
|
|
|
|
|
# Copy the whole SDK
|
|
|
|
|
cp -a . "${PKG}/usr/share/arduino"
|
|
|
|
|
|
|
|
|
|
# Create wrapper for java8 + buider and documentation symlink
|
|
|
|
|
install -Dm755 "${SRC}/arduino.sh" "${PKG}/usr/bin/arduino"
|
|
|
|
|
ln -s /usr/share/arduino/arduino-builder "${PKG}/usr/bin/arduino-builder"
|
|
|
|
|
ln -s /usr/share/arduino/reference "${PKG}/usr/share/doc/arduino"
|
|
|
|
|
|
|
|
|
|
# Fix avrdude (see https://github.com/arduino/Arduino/issues/5094)
|
|
|
|
|
rm -f "${PKG}/usr/share/arduino/hardware/tools/avr/bin/avrdude"{,_bin}
|
|
|
|
|
ln -s /usr/bin/avrdude "${PKG}/usr/share/arduino/hardware/tools/avr/bin/avrdude"
|
|
|
|
|
|
|
|
|
|
# Install desktop icons (keep a symlink for the arduino binary)
|
|
|
|
|
cp -a lib/icons/* "${PKG}/usr/share/icons/hicolor"
|
|
|
|
|
rm -rf "${PKG}/usr/share/arduino/lib/icons"
|
|
|
|
|
ln -s /usr/share/icons/hicolor "${PKG}/usr/share/arduino/lib/icons"
|
|
|
|
|
|
|
|
|
|
# Create desktop file using existing template
|
|
|
|
|
sed "s,<BINARY_LOCATION>,arduino %U,g;s,<ICON_NAME>,arduino,g" "lib/desktop.template" \
|
|
|
|
|
> "${PKG}/usr/share/applications/arduino.desktop"
|
|
|
|
|
|
|
|
|
|
# Install Arduino mime type
|
|
|
|
|
ln -s /usr/share/arduino/lib/arduino-arduinoide.xml "${PKG}/usr/share/mime/packages/arduino.xml"
|
|
|
|
|
}
|