[arch-commits] Commit in arduino-avr-core/repos/community-any (4 files)

NicoHood nicohood at archlinux.org
Tue Dec 13 10:42:47 UTC 2016


    Date: Tuesday, December 13, 2016 @ 10:42:47
  Author: nicohood
Revision: 199212

archrelease: copy trunk to community-any

Added:
  arduino-avr-core/repos/community-any/PKGBUILD
    (from rev 199211, arduino-avr-core/trunk/PKGBUILD)
  arduino-avr-core/repos/community-any/platform.patch
    (from rev 199211, arduino-avr-core/trunk/platform.patch)
Deleted:
  arduino-avr-core/repos/community-any/PKGBUILD
  arduino-avr-core/repos/community-any/platform.patch

----------------+
 PKGBUILD       |   71 ++++++++++++++++++++++++++--------------------------
 platform.patch |   75 +++++++++++++++++++++++++++----------------------------
 2 files changed, 73 insertions(+), 73 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2016-12-13 10:42:25 UTC (rev 199211)
+++ PKGBUILD	2016-12-13 10:42:47 UTC (rev 199212)
@@ -1,35 +0,0 @@
-# Maintainer: NicoHood <archlinux {cat} nicohood {dog} de>
-# PGP ID: 97312D5EB9D7AE7D0BD4307351DAE9B7C1AE9161
-
-pkgname=arduino-avr-core
-pkgver=1.6.14
-pkgrel=3
-pkgdesc="Arduino AVR core with upstream avr-gcc and avrdude"
-arch=('any')
-url="https://github.com/arduino/Arduino"
-license=('GPL')
-depends=('avrdude' 'avr-gcc' 'avr-libc')
-makedepends=('')
-optdepends=('arduino: Arduino IDE')
-options=(!strip)
-source=("https://downloads.arduino.cc/cores/avr-1.6.14.tar.bz2"
-        "platform.patch")
-sha512sums=('06fff5e62ffa6d3d2b11c75fd54fafe689f8d3fbc6ea38ceb14389ace8f0720a6ba0bd29c6ee6096075fb287bb91fa635533e92904f098c55854be438f6f1514'
-            '8c1b21222bd65d7985a71f6ac037aa69a608e99fe633528f9161ac39d57329499fd32cd8ff0021e15dc2239612edde8cded1a22882f46dc6433388eabc9f24c2')
-
-prepare()
-{
-    # Prepare arduino avr core to be used with internal avr-gcc
-    cd "${srcdir}/avr"
-    patch -Np1 -i "${srcdir}/platform.patch"
-
-    # Remove elf files
-    find . -name "*.elf" -type f -exec rm -f {} \;
-    find . -name "*.a" -type f -exec rm -f {} \;
-}
-
-package() {
-    # Copy archlinux arduino avr core
-    install -dm755 "${pkgdir}/usr/share/arduino/hardware/archlinux-arduino"
-    cp -a "${srcdir}/avr" "${pkgdir}/usr/share/arduino/hardware/archlinux-arduino"
-}

Copied: arduino-avr-core/repos/community-any/PKGBUILD (from rev 199211, arduino-avr-core/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2016-12-13 10:42:47 UTC (rev 199212)
@@ -0,0 +1,36 @@
+# Maintainer: NicoHood <archlinux {cat} nicohood {dog} de>
+# PGP ID: 97312D5EB9D7AE7D0BD4307351DAE9B7C1AE9161
+
+pkgname=arduino-avr-core
+pkgver=1.6.15
+pkgrel=1
+pkgdesc="Arduino AVR core with upstream avr-gcc and avrdude"
+arch=('any')
+url="https://github.com/arduino/Arduino"
+license=('GPL')
+depends=('avrdude' 'avr-gcc' 'avr-libc')
+options=(!strip !emptydirs)
+source=("https://downloads.arduino.cc/cores/avr-${pkgver}.tar.bz2"
+        "platform.patch")
+sha512sums=('ed6abd7b36eb4b2613965e70ccbc978f37253bdbe20938e23259a48719aa013f474ab1949c900766faa02b5c2e28a5a073b372ea1f52060ad5c8c3ba3641756e'
+            'fbf23d990addd7267da3d37639a21fbdb79be023e4e873181c6be731af1285a1755a38701615a38b5bdfb9436a55104bed1223c3e61cb4a9cdb261e8f3b6559e')
+
+prepare()
+{
+    # Prepare arduino avr core to be used with internal avr-gcc
+    cd "${srcdir}/avr"
+
+    # Update version in patchfile, then apply it
+    sed -i "s/^ version=.*/ version=${pkgver}/" "${srcdir}/platform.patch"
+    patch -Np1 -i "${srcdir}/platform.patch"
+
+    # Remove elf files
+    find . -name "*.elf" -type f -exec rm -f {} \;
+    find . -name "*.a" -type f -exec rm -f {} \;
+}
+
+package() {
+    # Copy archlinux arduino avr core
+    install -dm755 "${pkgdir}/usr/share/arduino/hardware/archlinux-arduino"
+    cp -a "${srcdir}/avr" "${pkgdir}/usr/share/arduino/hardware/archlinux-arduino"
+}

Deleted: platform.patch
===================================================================
--- platform.patch	2016-12-13 10:42:25 UTC (rev 199211)
+++ platform.patch	2016-12-13 10:42:47 UTC (rev 199212)
@@ -1,38 +0,0 @@
-diff -aur avr/platform.txt avr.new/platform.txt
---- avr/platform.txt	2016-09-21 10:05:40.000000000 +0200
-+++ avr.new/platform.txt	2016-10-08 16:52:00.513630471 +0200
-@@ -5,7 +5,7 @@
- # For more info:
- # https://github.com/arduino/Arduino/wiki/Arduino-IDE-1.5-3rd-party-Hardware-specification
- 
--name=Arduino AVR Boards
-+name=Arch Linux Arduino AVR Boards
- version=1.6.14
- 
- # AVR compile variables
-@@ -18,14 +18,14 @@
- compiler.warning_flags.all=-Wall -Wextra
- 
- # Default "compiler.path" is correct, change only if you want to override the initial value
--compiler.path={runtime.tools.avr-gcc.path}/bin/
-+compiler.path=/usr/bin/
- compiler.c.cmd=avr-gcc
- compiler.c.flags=-c -g -Os {compiler.warning_flags} -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects
- compiler.c.elf.flags={compiler.warning_flags} -Os -flto -fuse-linker-plugin -Wl,--gc-sections
- compiler.c.elf.cmd=avr-gcc
- compiler.S.flags=-c -g -x assembler-with-cpp -flto
- compiler.cpp.cmd=avr-g++
--compiler.cpp.flags=-c -g -Os {compiler.warning_flags} -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto
-+compiler.cpp.flags=-c -g -Os {compiler.warning_flags} -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -fno-devirtualize -fno-use-cxa-atexit
- compiler.ar.cmd=avr-gcc-ar
- compiler.ar.flags=rcs
- compiler.objcopy.cmd=avr-objcopy
-@@ -91,7 +91,7 @@
- # AVR Uploader/Programmers tools
- # ------------------------------
- 
--tools.avrdude.path={runtime.tools.avrdude.path}
-+tools.avrdude.path=/
- tools.avrdude.cmd.path={path}/bin/avrdude
- tools.avrdude.config.path={path}/etc/avrdude.conf
- 

Copied: arduino-avr-core/repos/community-any/platform.patch (from rev 199211, arduino-avr-core/trunk/platform.patch)
===================================================================
--- platform.patch	                        (rev 0)
+++ platform.patch	2016-12-13 10:42:47 UTC (rev 199212)
@@ -0,0 +1,37 @@
+diff -aur avr/platform.txt avr.new/platform.txt
+--- avr/platform.txt	2016-09-21 10:05:40.000000000 +0200
++++ avr.new/platform.txt	2016-10-08 16:52:00.513630471 +0200
+@@ -5,7 +5,7 @@
+ # For more info:
+ # https://github.com/arduino/Arduino/wiki/Arduino-IDE-1.5-3rd-party-Hardware-specification
+
+-name=Arduino AVR Boards
++name=Arch Linux Arduino AVR Boards
+ version=1.6.14
+
+ # AVR compile variables
+@@ -18,14 +18,14 @@
+ compiler.warning_flags.all=-Wall -Wextra
+
+ # Default "compiler.path" is correct, change only if you want to override the initial value
+-compiler.path={runtime.tools.avr-gcc.path}/bin/
++compiler.path=/usr/bin/
+ compiler.c.cmd=avr-gcc
+ compiler.c.flags=-c -g -Os {compiler.warning_flags} -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects
+ compiler.c.elf.flags={compiler.warning_flags} -Os -flto -fuse-linker-plugin -Wl,--gc-sections
+ compiler.c.elf.cmd=avr-gcc
+ compiler.S.flags=-c -g -x assembler-with-cpp -flto
+ compiler.cpp.cmd=avr-g++
+-compiler.cpp.flags=-c -g -Os {compiler.warning_flags} -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto
++compiler.cpp.flags=-c -g -Os {compiler.warning_flags} -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -fno-devirtualize -fno-use-cxa-atexit
+ compiler.ar.cmd=avr-gcc-ar
+ compiler.ar.flags=rcs
+ compiler.objcopy.cmd=avr-objcopy
+@@ -91,7 +91,7 @@
+ # AVR Uploader/Programmers tools
+ # ------------------------------
+
+-tools.avrdude.path={runtime.tools.avrdude.path}
++tools.avrdude.path=/
+ tools.avrdude.cmd.path={path}/bin/avrdude
+ tools.avrdude.config.path={path}/etc/avrdude.conf



More information about the arch-commits mailing list