[arch-commits] Commit in arduino/trunk (PKGBUILD arduino.install)

NicoHood nicohood at archlinux.org
Thu Mar 30 20:55:00 UTC 2017


    Date: Thursday, March 30, 2017 @ 20:54:59
  Author: nicohood
Revision: 220130

upgpkg: arduino 1:1.8.2-1

Modified:
  arduino/trunk/PKGBUILD
  arduino/trunk/arduino.install

-----------------+
 PKGBUILD        |   34 ++++++++++++++--------------------
 arduino.install |   15 ++++++++++++---
 2 files changed, 26 insertions(+), 23 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-03-30 20:30:45 UTC (rev 220129)
+++ PKGBUILD	2017-03-30 20:54:59 UTC (rev 220130)
@@ -9,8 +9,8 @@
 # Contributor: tty0 <vt.tty0[d0t]gmail.com>
 
 pkgname=arduino
-pkgver=1.8.0
-pkgrel=3
+pkgver=1.8.2
+pkgrel=1
 epoch=1
 pkgdesc="Arduino prototyping platform SDK"
 arch=('i686' 'x86_64')
@@ -23,35 +23,28 @@
             'python2: Intel Galileo Board installation')
 options=(!strip)
 install="arduino.install"
-source=("${pkgname}-${pkgver}.tar.gz::https://github.com/arduino/Arduino/archive/${pkgver}.tar.gz"
-        "https://github.com/arduino-libraries/WiFi101-FirmwareUpdater-Plugin/releases/download/v0.8.3/WiFi101-Updater-ArduinoIDE-Plugin-0.8.3.zip"
+source=("${pkgname}-${pkgver}.tar.xz::https://github.com/arduino/Arduino/releases/download/${pkgver}/arduino-${pkgver}.tar.xz"
+        "${pkgname}-${pkgver}.tar.xz.sig::https://github.com/arduino/Arduino/releases/download/${pkgver}/arduino-${pkgver}.tar.xz.sig"
+        "https://github.com/arduino-libraries/WiFi101-FirmwareUpdater-Plugin/releases/download/v0.9.0/WiFi101-Updater-ArduinoIDE-Plugin-0.9.0.zip"
         "https://downloads.arduino.cc/libastylej-2.05.1-3.zip"
         "https://downloads.arduino.cc/liblistSerials/liblistSerials-1.4.0.zip"
-        "arduino.sh"
-        "build.patch")
-sha512sums=('25edea8cb188155ead2e2e9364067e445cf9d160d2fb7caea3c25adeb2e5e13072de8e7b1a45dfbd40c3346356decfad9de1d2e67838c532bd5ef8550678033d'
-            'fb2c5f77ea047c060e67705886d106379ac4a297f3a7d1f7d6d0b2410c4592f09cece4578aeeaed867c03a2efe5fe8d124ccc36c4189ee5c875cd16473a6faab'
+        "arduino.sh")
+sha512sums=('b5fe219e8d7090e104e1e4db7bf6479b9cf8e827cba87d8e8d664dbc48de07adb64c206da91de2ae81c7a2b6c5ac7d718e41734a9fb2fcbcaf8a3c3f3479f9ed'
+            'SKIP'
+            '55b5e4378eb42f02b8ce85de3a662b6ab827950f14261a007875778739f8445d6c943501212033d675f7904c36986dc27bb07518684a0683aa68caea50e6ffa6'
             '7f82d64e34ef2d85a6b037caeecfa338b72f8edfc57a9903af3ab89b1d42cf7dfd9a6170abe8131ae3e6506850d82ed5092c3b08983a16d9c80319cd24c14555'
             'd78270ee9007fc8427b7f962aced6c14fd4772deca1bbf4ad47c3c74d9addb74e67184e80516af4613cf8d7270bc50d4019437d9ad84274d6fc26b68c4a00db1'
-            'd97e73a6764232c5fbcdbd46d98f1dfde1d95d8256f578fb05480694423842ec864c49d572a325c7d00b026619d84dc114f1e3e0d2f8219b94871dce1718f05a'
-            '9963e964fe2206ce11a2981d3655ff73aa79e8a9dcbc5b03ee4fa84fd036b0d4b28af6ddd6c8bd0cdf8564c42209b738838141da9b185eeb47067ddb78afd9b7')
+            'd97e73a6764232c5fbcdbd46d98f1dfde1d95d8256f578fb05480694423842ec864c49d572a325c7d00b026619d84dc114f1e3e0d2f8219b94871dce1718f05a')
+validpgpkeys=('326567C1C6B288DF32CB061A95FA6F43E21188C4') # Arduino Packages <support at arduino.cc>
 
-prepare()
-{
-    # Patch arduino build process.
-    # See PR: https://github.com/arduino/Arduino/pull/5438
-    cd "${srcdir}/Arduino-${pkgver}"
-    patch -Np1 -i "${srcdir}/build.patch"
-}
-
 build() {
     cd "Arduino-${pkgver}/build"
 
     # Compile with java8
-    export PATH=/usr/lib/jvm/java-8-openjdk/jre/bin/:$PATH
+    export PATH=/usr/lib/jvm/java-8-openjdk/jre/bin/:"$PATH"
 
     # Do not include their avr-core + tools and no docs. We build them seperately
-    ant clean dist -Dversion=${pkgver} build -Dlight_bundle=true \
+    ant clean dist -Dversion="${pkgver}" build -Dlight_bundle=true \
                                              -Dno_docs=true \
                                              -Dlocal_sources=true \
                                              -Dno_arduino_builder=true
@@ -78,6 +71,7 @@
 
     # Arduino-builder
     # https://bugs.archlinux.org/task/52377
+    # https://github.com/arduino/arduino-builder/issues/209
     ln -s /usr/bin/arduino-builder "${pkgdir}/usr/share/arduino/arduino-builder"
     install -dm755 "${pkgdir}/usr/share/arduino/tools-builder"
 

Modified: arduino.install
===================================================================
--- arduino.install	2017-03-30 20:30:45 UTC (rev 220129)
+++ arduino.install	2017-03-30 20:54:59 UTC (rev 220130)
@@ -1,7 +1,7 @@
 post_install() {
-    echo "Add yourself to the uucp group to access the serial ports:"
-    echo "sudo usermod -a -G uucp <user>"
-    echo "Please checkout the wiki for further information."
+    echo ":: Add yourself to the uucp group to access the serial ports:"
+    echo "   sudo usermod -a -G uucp <user>"
+    echo "   Please checkout the wiki for further information."
 }
 
 pre_upgrade() {
@@ -18,9 +18,18 @@
   echo "   It might be left from a very old upgrade. Please remove it."
 }
 
+_1:1.8.2_1_changes() {
+    echo ":: Setting new permissions (775 -> 755) for /usr/share/arduino/tools/WiFi101/ and subfolders"
+    chmod 755 /usr/share/arduino/tools/WiFi101/
+    chmod 755 /usr/share/arduino/tools/WiFi101/tool/
+    chmod 755 /usr/share/arduino/tools/WiFi101/tool/firmwares/
+    chmod 755 /usr/share/arduino/tools/WiFi101/tool/firmwares/19.4.4/
+}
+
 post_upgrade() {
     local v upgrades=(
       1:1.6.12-1
+      1:1.8.2-1
     )
 
     for v in "${upgrades[@]}"; do



More information about the arch-commits mailing list