[arch-commits] Commit in arduino-avr-core/repos (3 files)

NicoHood nicohood at archlinux.org
Sun Oct 30 22:35:34 UTC 2016


    Date: Sunday, October 30, 2016 @ 22:35:34
  Author: nicohood
Revision: 194114

archrelease: copy trunk to community-any

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

----------------+
 PKGBUILD       |   35 +++++++++++++++++++++++++++++++++++
 platform.patch |   38 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 73 insertions(+)

Copied: arduino-avr-core/repos/community-any/PKGBUILD (from rev 194113, arduino-avr-core/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2016-10-30 22:35:34 UTC (rev 194114)
@@ -0,0 +1,35 @@
+# 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/platform.patch (from rev 194113, arduino-avr-core/trunk/platform.patch)
===================================================================
--- community-any/platform.patch	                        (rev 0)
+++ community-any/platform.patch	2016-10-30 22:35:34 UTC (rev 194114)
@@ -0,0 +1,38 @@
+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