diff options
author | Omar Vega Ramos <ovruni@gnu.org.pe> | 2017-08-14 00:51:39 -0500 |
---|---|---|
committer | Omar Vega Ramos <ovruni@gnu.org.pe> | 2017-08-14 00:51:39 -0500 |
commit | 96b970c71bcc37fa62962aad88ce1715c0abcc86 (patch) | |
tree | 26f728ba96163dfc9ed361da8b54e8bc9d5947d0 /java/arduino/PKGBUILD | |
parent | 79e88b0afb93ad661326ecfc1516441d86e6649f (diff) | |
download | abslibre-96b970c71bcc37fa62962aad88ce1715c0abcc86.tar.gz abslibre-96b970c71bcc37fa62962aad88ce1715c0abcc86.tar.bz2 abslibre-96b970c71bcc37fa62962aad88ce1715c0abcc86.zip |
Removing java/arduino. Use pcr/arduino instead
Diffstat (limited to 'java/arduino/PKGBUILD')
-rw-r--r-- | java/arduino/PKGBUILD | 92 |
1 files changed, 0 insertions, 92 deletions
diff --git a/java/arduino/PKGBUILD b/java/arduino/PKGBUILD deleted file mode 100644 index 5f8ae8808..000000000 --- a/java/arduino/PKGBUILD +++ /dev/null @@ -1,92 +0,0 @@ -# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net> -# Maintainer (AUR): PyroPeter <googlemail.com@abi1789> - -pkgname=arduino -pkgver=1.0.5 -pkgrel=1 -pkgdesc="Arduino SDK and IDE" -arch=('i686' 'x86_64') -url="http://arduino.cc/en/Main/Software" -options=(!strip) -license=('GPL') - -depends=('avr-gcc' 'avr-libc' 'libusb-compat' 'java-runtime' 'avrdude' - 'java-rxtx' 'antlr2' 'eclipse-ecj' 'jna') -makedepends=(java-environment apache-ant) -install="arduino.install" -source=("${pkgname}-${pkgver}.tar.gz::https://github.com/arduino/Arduino/archive/${pkgver}.tar.gz" - 'external-avrtools.patch' - 'arduino.png' - 'arduino.desktop') - -unset _JAVA_OPTIONS -. /etc/profile.d/jre.sh - -prepare() { - cd "$srcdir/Arduino-$pkgver" - find . -name '*.hex' -delete - find . -name '*.jar' -delete - find . -name '*.so' -delete - find . -name '*.swp' -delete - rm -f build/linux/dist/tools/avrdude* - rm -rf hardware/arduino/firmwares/wifishield -} - -_link_jars() { - for jar in rxtx/RXTXcomm.jar antlr2.jar ecj.jar jna.jar; do - ln -sf /usr/share/java/$jar . - done -} - -_patch() { - cd "$srcdir/Arduino-$pkgver" - - # Don't look for pre-compiled avr-tools - patch -Np1 -i "$srcdir/external-avrtools.patch" - - rm -rf app/src/processing/app/macosx - rm -rf app/src/processing/app/windows - - cd app/lib - _link_jars -} - -build() { - _patch - - # build submodules - for submodule in core/methods core/preproc; do - cd "$srcdir/Arduino-$pkgver/$submodule" - ant - done - - # build the main package - cd "$srcdir/Arduino-$pkgver/build" - ant - - # symlink jar files to the system locations - cd "linux/work/lib" - _link_jars -} - -package() { - cd "$srcdir/Arduino-$pkgver/build/linux/work" - - install -d "$pkgdir"/usr/{bin,share/{doc,applications,pixmaps}} - - # copy the whole SDK to /usr/share/arduino/ - cp -r . "$pkgdir/usr/share/arduino" - - # at least support the FHS a little bit: - ln -s ../share/arduino/arduino "$pkgdir/usr/bin/arduino" - ln -s ../arduino/reference "$pkgdir/usr/share/doc/arduino" - - # desktop icon - install -m644 "$srcdir/arduino.desktop" "$pkgdir/usr/share/applications/" - install -m644 "$srcdir/arduino.png" "$pkgdir/usr/share/pixmaps/" -} - -md5sums=('a7a00be1c3191b7e2c9ceb7a84a30e6f' - '9c696c2361d57027be41ae64436182aa' - '9e36d33891d5e68d38ec55d1494499a5' - 'eebc4d6495864bea99ad057af801afb9') |