diff options
author | NicoHood | 2016-07-19 19:34:13 +0200 |
---|---|---|
committer | NicoHood | 2016-07-19 19:36:01 +0200 |
commit | 8289c87eafc68e72782f7b40e91d488ff3ac2420 (patch) | |
tree | d073ca3cebcddff3013b8b2d560d775715030d25 | |
download | aur-8289c87eafc68e72782f7b40e91d488ff3ac2420.tar.gz |
Initial commit of arduno-git
-rw-r--r-- | .SRCINFO | 29 | ||||
-rw-r--r-- | PKGBUILD | 58 | ||||
-rw-r--r-- | arduino.install | 4 |
3 files changed, 91 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..e8105803eabe --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,29 @@ +pkgbase = arduino-git + pkgdesc = Arduino prototyping platform SDK + pkgver = 1.6.9.r53.g6521a7a + pkgrel = 1 + url = https://github.com/arduino/Arduino + install = arduino.install + arch = i686 + arch = x86_64 + arch = armv6h + arch = armv7h + license = GPL + license = LGPL + makedepends = jdk8-openjdk + makedepends = apache-ant + depends = gtk2 + depends = desktop-file-utils + depends = shared-mime-info + depends = jre8-openjdk + depends = avrdude + provides = arduino + conflicts = arduino + conflicts = arduino-bin + options = !strip + options = staticlibs + source = arduino-git::git+https://github.com/arduino/Arduino/#branch=master + sha512sums = SKIP + +pkgname = arduino-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..9ba7c5dc3956 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,58 @@ +# Maintainer: NicoHood <aur {at} nicohood {dot} de> +# Co-Maintainer: Christopher Loen <christopherloen at gmail dot com> + +pkgname=arduino-git +pkgver=1.6.9.r53.g6521a7a +pkgrel=1 +pkgdesc="Arduino prototyping platform SDK" +arch=('i686' 'x86_64' 'armv6h' 'armv7h') +url="https://github.com/arduino/Arduino" +license=('GPL' 'LGPL') +depends=('gtk2' 'desktop-file-utils' 'shared-mime-info' 'jre8-openjdk' 'avrdude') +makedepends=('jdk8-openjdk' 'apache-ant') +options=(!strip staticlibs) +install="arduino.install" +provides=('arduino') +conflicts=('arduino' 'arduino-bin') +source=("${pkgname}::git+https://github.com/arduino/Arduino/#branch=master") +sha512sums=('SKIP') + +pkgver() { + cd "${srcdir}/${pkgname}" + git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} + +build() { + cd "${srcdir}/${pkgname}/build" + ant clean build +} + +package() { + cd "${srcdir}/${pkgname}/build/linux/work" + + install -dm755 "${pkgdir}/usr/bin" + install -dm755 "${pkgdir}/usr/share/"{doc,icons/hicolor,applications,mime/packages} + + # Copy the whole SDK + cp -a . "${pkgdir}/usr/share/arduino" + + # Create symlinks + ln -s /usr/share/arduino/arduino "${pkgdir}/usr/bin/arduino" + ln -s /usr/share/arduino/reference "${pkgdir}/usr/share/doc/arduino" + + # Fix avrdude (see https://github.com/arduino/Arduino/issues/5094) + rm -f "${pkgdir}/usr/share/arduino/hardware/tools/avr/bin/avrdude"{,_bin} + ln -s /usr/bin/avrdude "${pkgdir}/usr/share/arduino/hardware/tools/avr/bin/avrdude" + + # Install desktop icons (keep a symlink for the arduino binary) + cp -a lib/icons/* "${pkgdir}/usr/share/icons/hicolor" + rm -rf "${pkgdir}/usr/share/arduino/lib/icons" + ln -s /usr/share/icons/hicolor "${pkgdir}/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" \ + > "${pkgdir}/usr/share/applications/arduino.desktop" + + # Install Arduino mime type + ln -s /usr/share/arduino/lib/arduino-arduinoide.xml "${pkgdir}/usr/share/mime/packages/arduino.xml" +} diff --git a/arduino.install b/arduino.install new file mode 100644 index 000000000000..9a2794a97038 --- /dev/null +++ b/arduino.install @@ -0,0 +1,4 @@ +post_install() { + echo "Add yourself to the uucp group to access the serial ports:" + echo "sudo usermod -a -G uucp <user>" +} |