[arch-commits] Commit in arm-none-eabi-newlib/repos (2 files)

2020-03-19 Thread Anatol Pomozov via arch-commits
Date: Thursday, March 19, 2020 @ 20:06:18
  Author: anatolik
Revision: 601136

archrelease: copy trunk to community-testing-any

Added:
  arm-none-eabi-newlib/repos/community-testing-any/
  arm-none-eabi-newlib/repos/community-testing-any/PKGBUILD
(from rev 601135, arm-none-eabi-newlib/trunk/PKGBUILD)

--+
 PKGBUILD |   68 +
 1 file changed, 68 insertions(+)

Copied: arm-none-eabi-newlib/repos/community-testing-any/PKGBUILD (from rev 
601135, arm-none-eabi-newlib/trunk/PKGBUILD)
===
--- community-testing-any/PKGBUILD  (rev 0)
+++ community-testing-any/PKGBUILD  2020-03-19 20:06:18 UTC (rev 601136)
@@ -0,0 +1,68 @@
+# Maintainer: Anatol Pomozov 
+
+_target=arm-none-eabi
+pkgname=$_target-newlib
+pkgver=3.3.0
+pkgrel=1
+_upstream_ver=$pkgver
+pkgdesc='A C standard library implementation intended for use on embedded 
systems (ARM bare metal)'
+arch=(any)
+url='https://www.sourceware.org/newlib/'
+license=(BSD)
+makedepends=($_target-gcc)
+options=(!emptydirs !strip)
+source=(https://sourceware.org/pub/newlib/newlib-$_upstream_ver.tar.gz)
+sha256sums=('58dd9e3eaedf519360d92d84205c3deef0b3fc286685d1c562e245914ef72c66')
+
+build() {
+  rm -rf build-{newlib,nano}
+  mkdir build-{newlib,nano}
+
+  export CFLAGS_FOR_TARGET='-g -O2 -ffunction-sections -fdata-sections'
+  cd "$srcdir"/build-newlib
+  ../newlib-$_upstream_ver/configure \
+--target=$_target \
+--prefix=/usr \
+--enable-newlib-io-long-long \
+--enable-newlib-io-c99-formats \
+--enable-newlib-register-fini \
+--enable-newlib-retargetable-locking \
+--disable-newlib-supplied-syscalls \
+--disable-nls
+  make
+
+  export CFLAGS_FOR_TARGET='-g -Os -ffunction-sections -fdata-sections'
+  cd "$srcdir"/build-nano
+  ../newlib-$_upstream_ver/configure \
+--target=$_target \
+--prefix=/usr \
+--disable-newlib-supplied-syscalls \
+--enable-newlib-reent-small \
+--enable-newlib-retargetable-locking \
+--disable-newlib-fvwrite-in-streamio \
+--disable-newlib-fseek-optimization \
+--disable-newlib-wide-orient \
+--enable-newlib-nano-malloc \
+--disable-newlib-unbuf-stream-opt \
+--enable-lite-exit \
+--enable-newlib-global-atexit \
+--enable-newlib-nano-formatted-io \
+--disable-nls
+  make
+}
+
+package() {
+  cd "$srcdir"/build-nano
+  make DESTDIR="$pkgdir" install -j1
+  find "$pkgdir" -regex ".*/lib\(c\|g\|rdimon\)\.a" -exec rename .a _nano.a 
'{}' \;
+  install -d "$pkgdir"/usr/$_target/include/newlib-nano
+  install -m644 -t "$pkgdir"/usr/$_target/include/newlib-nano 
"$pkgdir"/usr/$_target/include/newlib.h
+
+  cd "$srcdir"/build-newlib
+  make DESTDIR="$pkgdir" install -j1
+
+  find "$pkgdir"/usr/$_target/lib \( -name "*.a" -or -name "*.o" \) -exec 
$_target-objcopy -R .comment -R .note -R .debug_info -R .debug_aranges -R 
.debug_pubnames -R .debug_pubtypes -R .debug_abbrev -R .debug_line -R 
.debug_str -R .debug_ranges -R .debug_loc '{}' \;
+
+  install -d "$pkgdir"/usr/share/licenses/$pkgname/
+  install -m644 -t "$pkgdir"/usr/share/licenses/$pkgname/ 
"$srcdir"/newlib-$_upstream_ver/COPYING*
+}


[arch-commits] Commit in arm-none-eabi-newlib/repos (2 files)

2019-09-04 Thread Anatol Pomozov via arch-commits
Date: Thursday, September 5, 2019 @ 05:48:46
  Author: anatolik
Revision: 508131

archrelease: copy trunk to community-testing-any

Added:
  arm-none-eabi-newlib/repos/community-testing-any/
  arm-none-eabi-newlib/repos/community-testing-any/PKGBUILD
(from rev 508130, arm-none-eabi-newlib/trunk/PKGBUILD)

--+
 PKGBUILD |   68 +
 1 file changed, 68 insertions(+)

Copied: arm-none-eabi-newlib/repos/community-testing-any/PKGBUILD (from rev 
508130, arm-none-eabi-newlib/trunk/PKGBUILD)
===
--- community-testing-any/PKGBUILD  (rev 0)
+++ community-testing-any/PKGBUILD  2019-09-05 05:48:46 UTC (rev 508131)
@@ -0,0 +1,68 @@
+# Maintainer: Anatol Pomozov 
+
+_target=arm-none-eabi
+pkgname=$_target-newlib
+pkgver=3.1.0
+pkgrel=2
+_upstream_ver=$pkgver
+pkgdesc='A C standard library implementation intended for use on embedded 
systems (ARM bare metal)'
+arch=(any)
+url='https://www.sourceware.org/newlib/'
+license=(BSD)
+makedepends=($_target-gcc)
+options=(!emptydirs !strip)
+source=(https://sourceware.org/pub/newlib/newlib-$_upstream_ver.tar.gz)
+sha256sums=('fb4fa1cc21e9060719208300a61420e4089d6de6ef59cf533b57fe74801d102a')
+
+build() {
+  rm -rf build-{newlib,nano}
+  mkdir build-{newlib,nano}
+
+  export CFLAGS_FOR_TARGET='-g -O2 -ffunction-sections -fdata-sections'
+  cd "$srcdir"/build-newlib
+  ../newlib-$_upstream_ver/configure \
+--target=$_target \
+--prefix=/usr \
+--enable-newlib-io-long-long \
+--enable-newlib-io-c99-formats \
+--enable-newlib-register-fini \
+--enable-newlib-retargetable-locking \
+--disable-newlib-supplied-syscalls \
+--disable-nls
+  make
+
+  export CFLAGS_FOR_TARGET='-g -Os -ffunction-sections -fdata-sections'
+  cd "$srcdir"/build-nano
+  ../newlib-$_upstream_ver/configure \
+--target=$_target \
+--prefix=/usr \
+--disable-newlib-supplied-syscalls \
+--enable-newlib-reent-small \
+--enable-newlib-retargetable-locking \
+--disable-newlib-fvwrite-in-streamio \
+--disable-newlib-fseek-optimization \
+--disable-newlib-wide-orient \
+--enable-newlib-nano-malloc \
+--disable-newlib-unbuf-stream-opt \
+--enable-lite-exit \
+--enable-newlib-global-atexit \
+--enable-newlib-nano-formatted-io \
+--disable-nls
+  make
+}
+
+package() {
+  cd "$srcdir"/build-nano
+  make DESTDIR="$pkgdir" install -j1
+  find "$pkgdir" -regex ".*/lib\(c\|g\|rdimon\)\.a" -exec rename .a _nano.a 
'{}' \;
+  install -d "$pkgdir"/usr/$_target/include/newlib-nano
+  install -m644 -t "$pkgdir"/usr/$_target/include/newlib-nano 
"$pkgdir"/usr/$_target/include/newlib.h
+
+  cd "$srcdir"/build-newlib
+  make DESTDIR="$pkgdir" install -j1
+
+  find "$pkgdir"/usr/$_target/lib \( -name "*.a" -or -name "*.o" \) -exec 
$_target-objcopy -R .comment -R .note -R .debug_info -R .debug_aranges -R 
.debug_pubnames -R .debug_pubtypes -R .debug_abbrev -R .debug_line -R 
.debug_str -R .debug_ranges -R .debug_loc '{}' \;
+
+  install -d "$pkgdir"/usr/share/licenses/$pkgname/
+  install -m644 -t "$pkgdir"/usr/share/licenses/$pkgname/ 
"$srcdir"/newlib-$_upstream_ver/COPYING*
+}


[arch-commits] Commit in arm-none-eabi-newlib/repos (2 files)

2018-05-29 Thread Anatol Pomozov via arch-commits
Date: Tuesday, May 29, 2018 @ 14:22:07
  Author: anatolik
Revision: 333177

archrelease: copy trunk to community-testing-any

Added:
  arm-none-eabi-newlib/repos/community-testing-any/
  arm-none-eabi-newlib/repos/community-testing-any/PKGBUILD
(from rev 333176, arm-none-eabi-newlib/trunk/PKGBUILD)

--+
 PKGBUILD |   66 +
 1 file changed, 66 insertions(+)

Copied: arm-none-eabi-newlib/repos/community-testing-any/PKGBUILD (from rev 
333176, arm-none-eabi-newlib/trunk/PKGBUILD)
===
--- community-testing-any/PKGBUILD  (rev 0)
+++ community-testing-any/PKGBUILD  2018-05-29 14:22:07 UTC (rev 333177)
@@ -0,0 +1,66 @@
+# $Id$
+# Maintainer: Anatol Pomozov 
+
+_target=arm-none-eabi
+pkgname=$_target-newlib
+pkgver=3.0.0.20180226
+pkgrel=2
+_upstream_ver=$pkgver
+pkgdesc='A C standard library implementation intended for use on embedded 
systems (ARM bare metal)'
+arch=(any)
+url='http://www.sourceware.org/newlib/'
+license=(BSD)
+makedepends=($_target-gcc)
+options=(!emptydirs !strip)
+source=(ftp://sourceware.org/pub/newlib/newlib-$_upstream_ver.tar.gz)
+sha256sums=('d0b40c874c3047eccbf06fe916d3fc746bd94e8a4cd14c54381b2f72f68c5665')
+
+build() {
+  rm -rf build-{newlib,nano}
+  mkdir build-{newlib,nano}
+
+  export CFLAGS_FOR_TARGET='-g -O2 -ffunction-sections -fdata-sections'
+  cd "$srcdir"/build-newlib
+  ../newlib-$_upstream_ver/configure \
+--target=$_target \
+--prefix=/usr \
+--disable-newlib-supplied-syscalls \
+--disable-nls \
+--enable-newlib-io-long-long \
+--enable-newlib-register-fini
+  make
+
+  export CFLAGS_FOR_TARGET='-g -Os -ffunction-sections -fdata-sections'
+  cd "$srcdir"/build-nano
+  ../newlib-$_upstream_ver/configure \
+--target=$_target \
+--prefix=/usr \
+--disable-newlib-supplied-syscalls \
+--disable-nls \
+--enable-newlib-reent-small   \
+--disable-newlib-fvwrite-in-streamio  \
+--disable-newlib-fseek-optimization   \
+--disable-newlib-wide-orient  \
+--enable-newlib-nano-malloc   \
+--disable-newlib-unbuf-stream-opt \
+--enable-lite-exit\
+--enable-newlib-global-atexit \
+--enable-newlib-nano-formatted-io
+  make
+}
+
+package() {
+  cd "$srcdir"/build-nano
+  make DESTDIR="$pkgdir" install -j1
+  find "$pkgdir" -regex ".*/lib\(c\|g\|rdimon\)\.a" -exec rename .a _nano.a 
'{}' \;
+  install -d "$pkgdir"/usr/$_target/include/newlib-nano
+  install -m644 -t "$pkgdir"/usr/$_target/include/newlib-nano 
"$pkgdir"/usr/$_target/include/newlib.h
+
+  cd "$srcdir"/build-newlib
+  make DESTDIR="$pkgdir" install -j1
+
+  find "$pkgdir"/usr/$_target/lib \( -name "*.a" -or -name "*.o" \) -exec 
$_target-objcopy -R .comment -R .note -R .debug_info -R .debug_aranges -R 
.debug_pubnames -R .debug_pubtypes -R .debug_abbrev -R .debug_line -R 
.debug_str -R .debug_ranges -R .debug_loc '{}' \;
+
+  install -d "$pkgdir"/usr/share/licenses/$pkgname/
+  install -m644 -t "$pkgdir"/usr/share/licenses/$pkgname/ 
"$srcdir"/newlib-$_upstream_ver/COPYING*
+}


[arch-commits] Commit in arm-none-eabi-newlib/repos (2 files)

2018-05-05 Thread Anatol Pomozov via arch-commits
Date: Saturday, May 5, 2018 @ 21:04:06
  Author: anatolik
Revision: 318995

archrelease: copy trunk to community-testing-any

Added:
  arm-none-eabi-newlib/repos/community-testing-any/
  arm-none-eabi-newlib/repos/community-testing-any/PKGBUILD
(from rev 318994, arm-none-eabi-newlib/trunk/PKGBUILD)

--+
 PKGBUILD |   74 +
 1 file changed, 74 insertions(+)

Copied: arm-none-eabi-newlib/repos/community-testing-any/PKGBUILD (from rev 
318994, arm-none-eabi-newlib/trunk/PKGBUILD)
===
--- community-testing-any/PKGBUILD  (rev 0)
+++ community-testing-any/PKGBUILD  2018-05-05 21:04:06 UTC (rev 318995)
@@ -0,0 +1,74 @@
+# $Id$
+# Maintainer: Anatol Pomozov 
+
+_target=arm-none-eabi
+pkgname=$_target-newlib
+pkgver=3.0.0.20180226
+pkgrel=1
+_upstream_ver=$pkgver
+pkgdesc='A C standard library implementation intended for use on embedded 
systems (ARM bare metal)'
+arch=(any)
+url='http://www.sourceware.org/newlib/'
+license=(BSD)
+makedepends=($_target-gcc)
+options=(!emptydirs !strip)
+source=(ftp://sourceware.org/pub/newlib/newlib-$_upstream_ver.tar.gz
+
fix_build1.patch::'https://www.sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;a=patch;h=b8272e3b8df8337744423e4dd23e727cf963d528'
+
fix_build2.patch::'https://www.sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;a=patch;h=b7e0f286a2ecab3b687ec9b3f95f5a88b9f85310')
+sha256sums=('d0b40c874c3047eccbf06fe916d3fc746bd94e8a4cd14c54381b2f72f68c5665'
+'2be98412600b8d62b4f1456e95ae4bc3b7a6810981d3fde49fad1f42df0c49da'
+'641978987fcfc9fc5c529192f34771db44d3257f95bc682da16e8351356177cf')
+
+prepare() {
+  cd newlib-$_upstream_ver
+#  patch -p1 < ../fix_build1.patch
+#  patch -p1 < ../fix_build2.patch
+}
+
+build() {
+  rm -rf build-{newlib,nano}
+  mkdir build-{newlib,nano}
+
+  export CFLAGS_FOR_TARGET='-g -O2 -ffunction-sections -fdata-sections'
+  cd "$srcdir"/build-newlib
+  ../newlib-$_upstream_ver/configure \
+--target=$_target \
+--prefix=/usr \
+--disable-newlib-supplied-syscalls \
+--disable-nls \
+--enable-newlib-io-long-long \
+--enable-newlib-register-fini
+  make
+
+  export CFLAGS_FOR_TARGET='-g -Os -ffunction-sections -fdata-sections'
+  cd "$srcdir"/build-nano
+  ../newlib-$_upstream_ver/configure \
+--target=$_target \
+--prefix=/usr \
+--disable-newlib-supplied-syscalls \
+--disable-nls \
+--enable-newlib-reent-small   \
+--disable-newlib-fvwrite-in-streamio  \
+--disable-newlib-fseek-optimization   \
+--disable-newlib-wide-orient  \
+--enable-newlib-nano-malloc   \
+--disable-newlib-unbuf-stream-opt \
+--enable-lite-exit\
+--enable-newlib-global-atexit \
+--enable-newlib-nano-formatted-io
+  make
+}
+
+package() {
+  cd "$srcdir"/build-nano
+  make DESTDIR="$pkgdir" install -j1
+  find "$pkgdir" -regex ".*/lib\(c\|g\|rdimon\)\.a" -exec rename .a _nano.a 
'{}' \;
+
+  cd "$srcdir"/build-newlib
+  make DESTDIR="$pkgdir" install -j1
+
+  find "$pkgdir"/usr/$_target/lib \( -name "*.a" -or -name "*.o" \) -exec 
$_target-objcopy -R .comment -R .note -R .debug_info -R .debug_aranges -R 
.debug_pubnames -R .debug_pubtypes -R .debug_abbrev -R .debug_line -R 
.debug_str -R .debug_ranges -R .debug_loc '{}' \;
+
+  install -d "$pkgdir"/usr/share/licenses/$pkgname/
+  install -m644 -t "$pkgdir"/usr/share/licenses/$pkgname/ 
"$srcdir"/newlib-$_upstream_ver/COPYING*
+}


[arch-commits] Commit in arm-none-eabi-newlib/repos (2 files)

2018-02-13 Thread Anatol Pomozov via arch-commits
Date: Tuesday, February 13, 2018 @ 15:53:42
  Author: anatolik
Revision: 293870

archrelease: copy trunk to community-testing-any

Added:
  arm-none-eabi-newlib/repos/community-testing-any/
  arm-none-eabi-newlib/repos/community-testing-any/PKGBUILD
(from rev 293869, arm-none-eabi-newlib/trunk/PKGBUILD)

--+
 PKGBUILD |   74 +
 1 file changed, 74 insertions(+)

Copied: arm-none-eabi-newlib/repos/community-testing-any/PKGBUILD (from rev 
293869, arm-none-eabi-newlib/trunk/PKGBUILD)
===
--- community-testing-any/PKGBUILD  (rev 0)
+++ community-testing-any/PKGBUILD  2018-02-13 15:53:42 UTC (rev 293870)
@@ -0,0 +1,74 @@
+# $Id$
+# Maintainer: Anatol Pomozov 
+
+_target=arm-none-eabi
+pkgname=$_target-newlib
+pkgver=3.0.0
+pkgrel=1
+_upstream_ver=$pkgver
+pkgdesc='A C standard library implementation intended for use on embedded 
systems (ARM bare metal)'
+arch=(any)
+url='http://www.sourceware.org/newlib/'
+license=(BSD)
+makedepends=($_target-gcc)
+options=(!emptydirs !strip)
+source=(ftp://sourceware.org/pub/newlib/newlib-$_upstream_ver.tar.gz
+
fix_build1.patch::'https://www.sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;a=patch;h=b8272e3b8df8337744423e4dd23e727cf963d528'
+
fix_build2.patch::'https://www.sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;a=patch;h=b7e0f286a2ecab3b687ec9b3f95f5a88b9f85310')
+sha256sums=('c8566335ee74e5fcaeb8595b4ebd0400c4b043d6acb3263ecb1314f8f5501332'
+'2be98412600b8d62b4f1456e95ae4bc3b7a6810981d3fde49fad1f42df0c49da'
+'641978987fcfc9fc5c529192f34771db44d3257f95bc682da16e8351356177cf')
+
+prepare() {
+  cd newlib-$_upstream_ver
+  patch -p1 < ../fix_build1.patch
+  patch -p1 < ../fix_build2.patch
+}
+
+build() {
+  rm -rf build-{newlib,nano}
+  mkdir build-{newlib,nano}
+
+  export CFLAGS_FOR_TARGET='-g -O2 -ffunction-sections -fdata-sections'
+  cd "$srcdir"/build-newlib
+  ../newlib-$_upstream_ver/configure \
+--target=$_target \
+--prefix=/usr \
+--disable-newlib-supplied-syscalls \
+--disable-nls \
+--enable-newlib-io-long-long \
+--enable-newlib-register-fini
+  make
+
+  export CFLAGS_FOR_TARGET='-g -Os -ffunction-sections -fdata-sections'
+  cd "$srcdir"/build-nano
+  ../newlib-$_upstream_ver/configure \
+--target=$_target \
+--prefix=/usr \
+--disable-newlib-supplied-syscalls \
+--disable-nls \
+--enable-newlib-reent-small   \
+--disable-newlib-fvwrite-in-streamio  \
+--disable-newlib-fseek-optimization   \
+--disable-newlib-wide-orient  \
+--enable-newlib-nano-malloc   \
+--disable-newlib-unbuf-stream-opt \
+--enable-lite-exit\
+--enable-newlib-global-atexit \
+--enable-newlib-nano-formatted-io
+  make
+}
+
+package() {
+  cd "$srcdir"/build-nano
+  make DESTDIR="$pkgdir" install -j1
+  find "$pkgdir" -regex ".*/lib\(c\|g\|rdimon\)\.a" -exec rename .a _nano.a 
'{}' \;
+
+  cd "$srcdir"/build-newlib
+  make DESTDIR="$pkgdir" install -j1
+
+  find "$pkgdir"/usr/$_target/lib \( -name "*.a" -or -name "*.o" \) -exec 
$_target-objcopy -R .comment -R .note -R .debug_info -R .debug_aranges -R 
.debug_pubnames -R .debug_pubtypes -R .debug_abbrev -R .debug_line -R 
.debug_str -R .debug_ranges -R .debug_loc '{}' \;
+
+  install -d "$pkgdir"/usr/share/licenses/$pkgname/
+  install -m644 -t "$pkgdir"/usr/share/licenses/$pkgname/ 
"$srcdir"/newlib-$_upstream_ver/COPYING*
+}


[arch-commits] Commit in arm-none-eabi-newlib/repos (2 files)

2017-04-22 Thread Anatol Pomozov
Date: Saturday, April 22, 2017 @ 23:52:29
  Author: anatolik
Revision: 224432

archrelease: copy trunk to community-testing-any

Added:
  arm-none-eabi-newlib/repos/community-testing-any/
  arm-none-eabi-newlib/repos/community-testing-any/PKGBUILD
(from rev 224431, arm-none-eabi-newlib/trunk/PKGBUILD)

--+
 PKGBUILD |   64 +
 1 file changed, 64 insertions(+)

Copied: arm-none-eabi-newlib/repos/community-testing-any/PKGBUILD (from rev 
224431, arm-none-eabi-newlib/trunk/PKGBUILD)
===
--- community-testing-any/PKGBUILD  (rev 0)
+++ community-testing-any/PKGBUILD  2017-04-22 23:52:29 UTC (rev 224432)
@@ -0,0 +1,64 @@
+# $Id$
+# Maintainer: Anatol Pomozov 
+
+_target=arm-none-eabi
+pkgname=$_target-newlib
+pkgver=2.5.0.20170421
+pkgrel=1
+_upstream_ver=$pkgver
+pkgdesc='A C standard library implementation intended for use on embedded 
systems (ARM bare metal)'
+arch=(any)
+url='http://www.sourceware.org/newlib/'
+license=(BSD)
+makedepends=($_target-gcc)
+options=(!emptydirs !strip)
+source=(ftp://sourceware.org/pub/newlib/newlib-$_upstream_ver.tar.gz)
+sha1sums=('d9d5627a3f795094f18a1d934584814b00c4471c')
+
+build() {
+  rm -rf build-{newlib,nano}
+  mkdir build-{newlib,nano}
+
+  export CFLAGS_FOR_TARGET='-g -O2 -ffunction-sections -fdata-sections'
+  cd "$srcdir"/build-newlib
+  ../newlib-$_upstream_ver/configure \
+--target=$_target \
+--prefix=/usr \
+--disable-newlib-supplied-syscalls \
+--disable-nls \
+--enable-newlib-io-long-long \
+--enable-newlib-register-fini
+  make
+
+  export CFLAGS_FOR_TARGET='-g -Os -ffunction-sections -fdata-sections'
+  cd "$srcdir"/build-nano
+  ../newlib-$_upstream_ver/configure \
+--target=$_target \
+--prefix=/usr \
+--disable-newlib-supplied-syscalls \
+--disable-nls \
+--enable-newlib-reent-small   \
+--disable-newlib-fvwrite-in-streamio  \
+--disable-newlib-fseek-optimization   \
+--disable-newlib-wide-orient  \
+--enable-newlib-nano-malloc   \
+--disable-newlib-unbuf-stream-opt \
+--enable-lite-exit\
+--enable-newlib-global-atexit \
+--enable-newlib-nano-formatted-io
+  make
+}
+
+package() {
+  cd "$srcdir"/build-nano
+  make DESTDIR="$pkgdir" install -j1
+  find "$pkgdir" -regex ".*/lib\(c\|g\|rdimon\)\.a" -exec rename .a _nano.a 
'{}' \;
+
+  cd "$srcdir"/build-newlib
+  make DESTDIR="$pkgdir" install -j1
+
+  find "$pkgdir"/usr/$_target/lib \( -name "*.a" -or -name "*.o" \) -exec 
$_target-objcopy -R .comment -R .note -R .debug_info -R .debug_aranges -R 
.debug_pubnames -R .debug_pubtypes -R .debug_abbrev -R .debug_line -R 
.debug_str -R .debug_ranges -R .debug_loc '{}' \;
+
+  install -d "$pkgdir"/usr/share/licenses/$pkgname/
+  install -m644 -t "$pkgdir"/usr/share/licenses/$pkgname/ 
"$srcdir"/newlib-$_upstream_ver/COPYING*
+}


[arch-commits] Commit in arm-none-eabi-newlib/repos (2 files)

2017-02-28 Thread Anatol Pomozov
Date: Tuesday, February 28, 2017 @ 19:13:23
  Author: anatolik
Revision: 214249

archrelease: copy trunk to community-testing-any

Added:
  arm-none-eabi-newlib/repos/community-testing-any/
  arm-none-eabi-newlib/repos/community-testing-any/PKGBUILD
(from rev 214248, arm-none-eabi-newlib/trunk/PKGBUILD)

--+
 PKGBUILD |   64 +
 1 file changed, 64 insertions(+)

Copied: arm-none-eabi-newlib/repos/community-testing-any/PKGBUILD (from rev 
214248, arm-none-eabi-newlib/trunk/PKGBUILD)
===
--- community-testing-any/PKGBUILD  (rev 0)
+++ community-testing-any/PKGBUILD  2017-02-28 19:13:23 UTC (rev 214249)
@@ -0,0 +1,64 @@
+# $Id$
+# Maintainer: Anatol Pomozov 
+
+_target=arm-none-eabi
+pkgname=$_target-newlib
+pkgver=2.5.0.20170228
+pkgrel=1
+_upstream_ver=$pkgver
+pkgdesc='A C standard library implementation intended for use on embedded 
systems (ARM bare metal)'
+arch=(any)
+url='http://www.sourceware.org/newlib/'
+license=(BSD)
+makedepends=($_target-gcc)
+options=(!emptydirs !strip)
+source=(ftp://sourceware.org/pub/newlib/newlib-$_upstream_ver.tar.gz)
+sha1sums=('0ae4f8df84dbfb4ef44b7f22d920d6c9b4ed764b')
+
+build() {
+  rm -rf build-{newlib,nano}
+  mkdir build-{newlib,nano}
+
+  export CFLAGS_FOR_TARGET='-g -O2 -ffunction-sections -fdata-sections'
+  cd "$srcdir"/build-newlib
+  ../newlib-$_upstream_ver/configure \
+--target=$_target \
+--prefix=/usr \
+--disable-newlib-supplied-syscalls \
+--disable-nls \
+--enable-newlib-io-long-long \
+--enable-newlib-register-fini
+  make
+
+  export CFLAGS_FOR_TARGET='-g -Os -ffunction-sections -fdata-sections'
+  cd "$srcdir"/build-nano
+  ../newlib-$_upstream_ver/configure \
+--target=$_target \
+--prefix=/usr \
+--disable-newlib-supplied-syscalls \
+--disable-nls \
+--enable-newlib-reent-small   \
+--disable-newlib-fvwrite-in-streamio  \
+--disable-newlib-fseek-optimization   \
+--disable-newlib-wide-orient  \
+--enable-newlib-nano-malloc   \
+--disable-newlib-unbuf-stream-opt \
+--enable-lite-exit\
+--enable-newlib-global-atexit \
+--enable-newlib-nano-formatted-io
+  make
+}
+
+package() {
+  cd "$srcdir"/build-nano
+  make DESTDIR="$pkgdir" install -j1
+  find "$pkgdir" -regex ".*/lib\(c\|g\|rdimon\)\.a" -exec rename .a _nano.a 
'{}' \;
+
+  cd "$srcdir"/build-newlib
+  make DESTDIR="$pkgdir" install -j1
+
+  find "$pkgdir"/usr/$_target/lib \( -name "*.a" -or -name "*.o" \) -exec 
$_target-objcopy -R .comment -R .note -R .debug_info -R .debug_aranges -R 
.debug_pubnames -R .debug_pubtypes -R .debug_abbrev -R .debug_line -R 
.debug_str -R .debug_ranges -R .debug_loc '{}' \;
+
+  install -d "$pkgdir"/usr/share/licenses/$pkgname/
+  install -m644 -t "$pkgdir"/usr/share/licenses/$pkgname/ 
"$srcdir"/newlib-$_upstream_ver/COPYING*
+}


[arch-commits] Commit in arm-none-eabi-newlib/repos (2 files)

2016-12-23 Thread Anatol Pomozov
Date: Friday, December 23, 2016 @ 19:24:57
  Author: anatolik
Revision: 201276

archrelease: copy trunk to community-testing-any

Added:
  arm-none-eabi-newlib/repos/community-testing-any/
  arm-none-eabi-newlib/repos/community-testing-any/PKGBUILD
(from rev 201275, arm-none-eabi-newlib/trunk/PKGBUILD)

--+
 PKGBUILD |   64 +
 1 file changed, 64 insertions(+)

Copied: arm-none-eabi-newlib/repos/community-testing-any/PKGBUILD (from rev 
201275, arm-none-eabi-newlib/trunk/PKGBUILD)
===
--- community-testing-any/PKGBUILD  (rev 0)
+++ community-testing-any/PKGBUILD  2016-12-23 19:24:57 UTC (rev 201276)
@@ -0,0 +1,64 @@
+# $Id$
+# Maintainer: Anatol Pomozov 
+
+_target=arm-none-eabi
+pkgname=$_target-newlib
+pkgver=2.5.0
+pkgrel=1
+_upstream_ver=2.5.0
+pkgdesc='A C standard library implementation intended for use on embedded 
systems (ARM bare metal)'
+arch=(any)
+url='http://www.sourceware.org/newlib/'
+license=(BSD)
+makedepends=($_target-gcc)
+options=(!emptydirs !strip)
+source=(ftp://sourceware.org/pub/newlib/newlib-$_upstream_ver.tar.gz)
+sha1sums=('be1f1960bce564130a0cf9598e388fcc437169dc')
+
+build() {
+  rm -rf build-{newlib,nano}
+  mkdir build-{newlib,nano}
+
+  export CFLAGS_FOR_TARGET='-g -O2 -ffunction-sections -fdata-sections'
+  cd "$srcdir"/build-newlib
+  ../newlib-$_upstream_ver/configure \
+--target=$_target \
+--prefix=/usr \
+--disable-newlib-supplied-syscalls \
+--disable-nls \
+--enable-newlib-io-long-long \
+--enable-newlib-register-fini
+  make
+
+  export CFLAGS_FOR_TARGET='-g -Os -ffunction-sections -fdata-sections'
+  cd "$srcdir"/build-nano
+  ../newlib-$_upstream_ver/configure \
+--target=$_target \
+--prefix=/usr \
+--disable-newlib-supplied-syscalls \
+--disable-nls \
+--enable-newlib-reent-small   \
+--disable-newlib-fvwrite-in-streamio  \
+--disable-newlib-fseek-optimization   \
+--disable-newlib-wide-orient  \
+--enable-newlib-nano-malloc   \
+--disable-newlib-unbuf-stream-opt \
+--enable-lite-exit\
+--enable-newlib-global-atexit \
+--enable-newlib-nano-formatted-io
+  make
+}
+
+package() {
+  cd "$srcdir"/build-nano
+  make DESTDIR="$pkgdir" install -j1
+  find "$pkgdir" -regex ".*/lib\(c\|g\|rdimon\)\.a" -exec rename .a _nano.a 
'{}' \;
+
+  cd "$srcdir"/build-newlib
+  make DESTDIR="$pkgdir" install -j1
+
+  find "$pkgdir"/usr/$_target/lib \( -name "*.a" -or -name "*.o" \) -exec 
$_target-objcopy -R .comment -R .note -R .debug_info -R .debug_aranges -R 
.debug_pubnames -R .debug_pubtypes -R .debug_abbrev -R .debug_line -R 
.debug_str -R .debug_ranges -R .debug_loc '{}' \;
+
+  install -d "$pkgdir"/usr/share/licenses/$pkgname/
+  install -m644 -t "$pkgdir"/usr/share/licenses/$pkgname/ 
"$srcdir"/newlib-$_upstream_ver/COPYING*
+}


[arch-commits] Commit in arm-none-eabi-newlib/repos (2 files)

2016-11-30 Thread Anatol Pomozov
Date: Wednesday, November 30, 2016 @ 20:50:10
  Author: anatolik
Revision: 197450

archrelease: copy trunk to community-testing-any

Added:
  arm-none-eabi-newlib/repos/community-testing-any/
  arm-none-eabi-newlib/repos/community-testing-any/PKGBUILD
(from rev 197449, arm-none-eabi-newlib/trunk/PKGBUILD)

--+
 PKGBUILD |   64 +
 1 file changed, 64 insertions(+)

Copied: arm-none-eabi-newlib/repos/community-testing-any/PKGBUILD (from rev 
197449, arm-none-eabi-newlib/trunk/PKGBUILD)
===
--- community-testing-any/PKGBUILD  (rev 0)
+++ community-testing-any/PKGBUILD  2016-11-30 20:50:10 UTC (rev 197450)
@@ -0,0 +1,64 @@
+# $Id$
+# Maintainer: Anatol Pomozov 
+
+_target=arm-none-eabi
+pkgname=$_target-newlib
+pkgver=2.4.0
+pkgrel=4
+_upstream_ver=2.4.0.20161025
+pkgdesc='A C standard library implementation intended for use on embedded 
systems (ARM bare metal)'
+arch=(any)
+url='http://www.sourceware.org/newlib/'
+license=(BSD)
+makedepends=($_target-gcc)
+options=(!emptydirs !strip)
+source=(ftp://sourceware.org/pub/newlib/newlib-$_upstream_ver.tar.gz)
+sha1sums=('12879b06241f0ee987a8fef866de0db27b85755d')
+
+build() {
+  rm -rf build-{newlib,nano}
+  mkdir build-{newlib,nano}
+
+  export CFLAGS_FOR_TARGET='-g -O2 -ffunction-sections -fdata-sections'
+  cd "$srcdir"/build-newlib
+  ../newlib-$_upstream_ver/configure \
+--target=$_target \
+--prefix=/usr \
+--disable-newlib-supplied-syscalls \
+--disable-nls \
+--enable-newlib-io-long-long \
+--enable-newlib-register-fini
+  make
+
+  export CFLAGS_FOR_TARGET='-g -Os -ffunction-sections -fdata-sections'
+  cd "$srcdir"/build-nano
+  ../newlib-$_upstream_ver/configure \
+--target=$_target \
+--prefix=/usr \
+--disable-newlib-supplied-syscalls \
+--disable-nls \
+--enable-newlib-reent-small   \
+--disable-newlib-fvwrite-in-streamio  \
+--disable-newlib-fseek-optimization   \
+--disable-newlib-wide-orient  \
+--enable-newlib-nano-malloc   \
+--disable-newlib-unbuf-stream-opt \
+--enable-lite-exit\
+--enable-newlib-global-atexit \
+--enable-newlib-nano-formatted-io
+  make
+}
+
+package() {
+  cd "$srcdir"/build-nano
+  make DESTDIR="$pkgdir" install -j1
+  find "$pkgdir" -regex ".*/lib\(c\|g\|rdimon\)\.a" -exec rename .a _nano.a 
'{}' \;
+
+  cd "$srcdir"/build-newlib
+  make DESTDIR="$pkgdir" install -j1
+
+  find "$pkgdir"/usr/$_target/lib \( -name "*.a" -or -name "*.o" \) -exec 
$_target-objcopy -R .comment -R .note -R .debug_info -R .debug_aranges -R 
.debug_pubnames -R .debug_pubtypes -R .debug_abbrev -R .debug_line -R 
.debug_str -R .debug_ranges -R .debug_loc '{}' \;
+
+  install -d "$pkgdir"/usr/share/licenses/$pkgname/
+  install -m644 -t "$pkgdir"/usr/share/licenses/$pkgname/ 
"$srcdir"/newlib-$_upstream_ver/COPYING*
+}


[arch-commits] Commit in arm-none-eabi-newlib/repos (2 files)

2016-05-10 Thread Anatol Pomozov
Date: Tuesday, May 10, 2016 @ 17:59:01
  Author: anatolik
Revision: 174575

archrelease: copy trunk to community-testing-any

Added:
  arm-none-eabi-newlib/repos/community-testing-any/
  arm-none-eabi-newlib/repos/community-testing-any/PKGBUILD
(from rev 174574, arm-none-eabi-newlib/trunk/PKGBUILD)

--+
 PKGBUILD |   64 +
 1 file changed, 64 insertions(+)

Copied: arm-none-eabi-newlib/repos/community-testing-any/PKGBUILD (from rev 
174574, arm-none-eabi-newlib/trunk/PKGBUILD)
===
--- community-testing-any/PKGBUILD  (rev 0)
+++ community-testing-any/PKGBUILD  2016-05-10 15:59:01 UTC (rev 174575)
@@ -0,0 +1,64 @@
+# $Id$
+# Maintainer: Anatol Pomozov 
+
+_target=arm-none-eabi
+pkgname=$_target-newlib
+pkgver=2.4.0
+pkgrel=2
+_upstream_ver=$pkgver
+pkgdesc='A C standard library implementation intended for use on embedded 
systems (ARM bare metal)'
+arch=(any)
+url='http://www.sourceware.org/newlib/'
+license=(BSD)
+makedepends=($_target-gcc)
+options=(!emptydirs !strip)
+source=(ftp://sourceware.org/pub/newlib/newlib-$_upstream_ver.tar.gz)
+sha1sums=('f2142827d7b593676b91a530e2547e31262e14e7')
+
+build() {
+  rm -rf build-{newlib,nano}
+  mkdir build-{newlib,nano}
+
+  export CFLAGS_FOR_TARGET='-g -O2 -ffunction-sections -fdata-sections'
+  cd "$srcdir"/build-newlib
+  ../newlib-$_upstream_ver/configure \
+--target=$_target \
+--prefix=/usr \
+--disable-newlib-supplied-syscalls \
+--disable-nls \
+--enable-newlib-io-long-long \
+--enable-newlib-register-fini
+  make
+
+  export CFLAGS_FOR_TARGET='-g -Os -ffunction-sections -fdata-sections'
+  cd "$srcdir"/build-nano
+  ../newlib-$_upstream_ver/configure \
+--target=$_target \
+--prefix=/usr \
+--disable-newlib-supplied-syscalls \
+--disable-nls \
+--enable-newlib-reent-small   \
+--disable-newlib-fvwrite-in-streamio  \
+--disable-newlib-fseek-optimization   \
+--disable-newlib-wide-orient  \
+--enable-newlib-nano-malloc   \
+--disable-newlib-unbuf-stream-opt \
+--enable-lite-exit\
+--enable-newlib-global-atexit \
+--enable-newlib-nano-formatted-io
+  make
+}
+
+package() {
+  cd "$srcdir"/build-nano
+  make DESTDIR="$pkgdir" install -j1
+  find "$pkgdir" -regex ".*/lib\(c\|g\|rdimon\)\.a" -exec rename .a _nano.a 
'{}' \;
+
+  cd "$srcdir"/build-newlib
+  make DESTDIR="$pkgdir" install -j1
+
+  find "$pkgdir"/usr/$_target/lib \( -name "*.a" -or -name "*.o" \) -exec 
$_target-objcopy -R .comment -R .note -R .debug_info -R .debug_aranges -R 
.debug_pubnames -R .debug_pubtypes -R .debug_abbrev -R .debug_line -R 
.debug_str -R .debug_ranges -R .debug_loc '{}' \;
+
+  install -d "$pkgdir"/usr/share/licenses/$pkgname/
+  install -m644 -t "$pkgdir"/usr/share/licenses/$pkgname/ 
"$srcdir"/newlib-$_upstream_ver/COPYING*
+}


[arch-commits] Commit in arm-none-eabi-newlib/repos (2 files)

2016-03-30 Thread Anatol Pomozov
Date: Wednesday, March 30, 2016 @ 23:40:44
  Author: anatolik
Revision: 168937

archrelease: copy trunk to community-testing-any

Added:
  arm-none-eabi-newlib/repos/community-testing-any/
  arm-none-eabi-newlib/repos/community-testing-any/PKGBUILD
(from rev 168936, arm-none-eabi-newlib/trunk/PKGBUILD)

--+
 PKGBUILD |   64 +
 1 file changed, 64 insertions(+)

Copied: arm-none-eabi-newlib/repos/community-testing-any/PKGBUILD (from rev 
168936, arm-none-eabi-newlib/trunk/PKGBUILD)
===
--- community-testing-any/PKGBUILD  (rev 0)
+++ community-testing-any/PKGBUILD  2016-03-30 21:40:44 UTC (rev 168937)
@@ -0,0 +1,64 @@
+# $Id$
+# Maintainer: Anatol Pomozov 
+
+_target=arm-none-eabi
+pkgname=$_target-newlib
+pkgver=2.4.0
+pkgrel=1
+_upstream_ver=$pkgver
+pkgdesc='A C standard library implementation intended for use on embedded 
systems (ARM bare metal)'
+arch=(any)
+url='http://www.sourceware.org/newlib/'
+license=(BSD)
+makedepends=($_target-gcc)
+options=(!emptydirs !strip)
+source=(ftp://sourceware.org/pub/newlib/newlib-$_upstream_ver.tar.gz)
+sha1sums=('f2142827d7b593676b91a530e2547e31262e14e7')
+
+build() {
+  rm -rf build-{newlib,nano}
+  mkdir build-{newlib,nano}
+
+  export CFLAGS_FOR_TARGET='-g -O2 -ffunction-sections -fdata-sections'
+  cd "$srcdir"/build-newlib
+  ../newlib-$_upstream_ver/configure \
+--target=$_target \
+--prefix=/usr \
+--disable-newlib-supplied-syscalls \
+--disable-nls \
+--enable-newlib-io-long-long \
+--enable-newlib-register-fini
+  make
+
+  export CFLAGS_FOR_TARGET='-g -Os -ffunction-sections -fdata-sections'
+  cd "$srcdir"/build-nano
+  ../newlib-$_upstream_ver/configure \
+--target=$_target \
+--prefix=/usr \
+--disable-newlib-supplied-syscalls \
+--disable-nls \
+--enable-newlib-reent-small   \
+--disable-newlib-fvwrite-in-streamio  \
+--disable-newlib-fseek-optimization   \
+--disable-newlib-wide-orient  \
+--enable-newlib-nano-malloc   \
+--disable-newlib-unbuf-stream-opt \
+--enable-lite-exit\
+--enable-newlib-global-atexit \
+--enable-newlib-nano-formatted-io
+  make
+}
+
+package() {
+  cd "$srcdir"/build-nano
+  make DESTDIR="$pkgdir" install -j1
+  find "$pkgdir" -regex ".*/lib\(c\|g\|rdimon\)\.a" -exec rename .a _nano.a 
'{}' \;
+
+  cd "$srcdir"/build-newlib
+  make DESTDIR="$pkgdir" install -j1
+
+  find "$pkgdir"/usr/$_target/lib \( -name "*.a" -or -name "*.o" \) -exec 
$_target-objcopy -R .comment -R .note -R .debug_info -R .debug_aranges -R 
.debug_pubnames -R .debug_pubtypes -R .debug_abbrev -R .debug_line -R 
.debug_str -R .debug_ranges -R .debug_loc '{}' \;
+
+  install -d "$pkgdir"/usr/share/licenses/$pkgname/
+  install -m644 -t "$pkgdir"/usr/share/licenses/$pkgname/ 
"$srcdir"/newlib-$_upstream_ver/COPYING*
+}


[arch-commits] Commit in arm-none-eabi-newlib/repos (2 files)

2016-02-26 Thread Anatol Pomozov
Date: Friday, February 26, 2016 @ 20:47:45
  Author: anatolik
Revision: 163524

archrelease: copy trunk to community-testing-any

Added:
  arm-none-eabi-newlib/repos/community-testing-any/
  arm-none-eabi-newlib/repos/community-testing-any/PKGBUILD
(from rev 163523, arm-none-eabi-newlib/trunk/PKGBUILD)

--+
 PKGBUILD |   66 +
 1 file changed, 66 insertions(+)

Copied: arm-none-eabi-newlib/repos/community-testing-any/PKGBUILD (from rev 
163523, arm-none-eabi-newlib/trunk/PKGBUILD)
===
--- community-testing-any/PKGBUILD  (rev 0)
+++ community-testing-any/PKGBUILD  2016-02-26 19:47:45 UTC (rev 163524)
@@ -0,0 +1,66 @@
+# $Id$
+# Maintainer: Anatol Pomozov 
+
+_target=arm-none-eabi
+pkgname=$_target-newlib
+pkgver=2.3.0.20160226
+pkgrel=1
+_upstream_ver=$pkgver
+pkgdesc='A C standard library implementation intended for use on embedded 
systems (ARM bare metal)'
+arch=(any)
+url='http://www.sourceware.org/newlib/'
+license=(BSD)
+makedepends=($_target-gcc)
+options=(!emptydirs !strip)
+source=(ftp://sourceware.org/pub/newlib/newlib-$_upstream_ver.tar.gz)
+sha1sums=('56df3bc630fd36e5b37eece303f6f7033fa9ff85')
+
+build() {
+  rm -rf build-{newlib,nano}
+  mkdir build-{newlib,nano}
+
+  export CFLAGS_FOR_TARGET='-g -O2 -ffunction-sections -fdata-sections'
+  cd "$srcdir"/build-newlib
+  ../newlib-$_upstream_ver/configure \
+--target=$_target \
+--prefix=/usr \
+--disable-newlib-supplied-syscalls \
+--disable-nls \
+--enable-newlib-io-long-long \
+--enable-newlib-register-fini
+  make
+
+  export CFLAGS_FOR_TARGET='-g -Os -ffunction-sections -fdata-sections'
+  cd "$srcdir"/build-nano
+  ../newlib-$_upstream_ver/configure \
+--target=$_target \
+--prefix=/usr \
+--disable-newlib-supplied-syscalls \
+--disable-nls \
+--enable-newlib-reent-small   \
+--disable-newlib-fvwrite-in-streamio  \
+--disable-newlib-fseek-optimization   \
+--disable-newlib-wide-orient  \
+--enable-newlib-nano-malloc   \
+--disable-newlib-unbuf-stream-opt \
+--enable-lite-exit\
+--enable-newlib-global-atexit \
+--enable-newlib-nano-formatted-io
+  make
+}
+
+package() {
+  cd "$srcdir"/build-nano
+  make DESTDIR="$pkgdir" install -j1
+  find "$pkgdir" -regex ".*/lib\(c\|g\|rdimon\)\.a" -exec rename .a _nano.a 
'{}' \;
+
+  cd "$srcdir"/build-newlib
+  make DESTDIR="$pkgdir" install -j1
+
+  find "$pkgdir"/usr/$_target/lib \( -name "*.a" -or -name "*.o" \) -exec 
$_target-objcopy -R .comment -R .note -R .debug_info -R .debug_aranges -R 
.debug_pubnames -R .debug_pubtypes -R .debug_abbrev -R .debug_line -R 
.debug_str -R .debug_ranges -R .debug_loc '{}' \;
+
+  rm "$pkgdir"/usr/share/info/*.info
+
+  install -d "$pkgdir"/usr/share/licenses/$pkgname/
+  install -m644 -t "$pkgdir"/usr/share/licenses/$pkgname/ 
"$srcdir"/newlib-$_upstream_ver/COPYING*
+}


[arch-commits] Commit in arm-none-eabi-newlib/repos (2 files)

2015-04-24 Thread Anatol Pomozov
Date: Friday, April 24, 2015 @ 21:16:15
  Author: anatolik
Revision: 132203

archrelease: copy trunk to community-testing-any

Added:
  arm-none-eabi-newlib/repos/community-testing-any/
  arm-none-eabi-newlib/repos/community-testing-any/PKGBUILD
(from rev 132202, arm-none-eabi-newlib/trunk/PKGBUILD)

--+
 PKGBUILD |   66 +
 1 file changed, 66 insertions(+)

Copied: arm-none-eabi-newlib/repos/community-testing-any/PKGBUILD (from rev 
132202, arm-none-eabi-newlib/trunk/PKGBUILD)
===
--- community-testing-any/PKGBUILD  (rev 0)
+++ community-testing-any/PKGBUILD  2015-04-24 19:16:15 UTC (rev 132203)
@@ -0,0 +1,66 @@
+# $Id$
+# Maintainer: Anatol Pomozov anatol.pomo...@gmail.com
+
+_target=arm-none-eabi
+pkgname=$_target-newlib
+pkgver=2.2.0
+pkgrel=3
+_upstream_ver=$pkgver-1
+pkgdesc='A C standard library implementation intended for use on embedded 
systems (ARM bare metal)'
+arch=(any)
+url='http://www.sourceware.org/newlib/'
+license=(BSD)
+makedepends=($_target-gcc)
+options=(!emptydirs !strip)
+source=(ftp://sourceware.org/pub/newlib/newlib-$_upstream_ver.tar.gz)
+sha1sums=('ab7d18171fb02f4647881c91be52bbf19882ad3d')
+
+build() {
+  rm -rf build-{newlib,nano}
+  mkdir build-{newlib,nano}
+
+  export CFLAGS_FOR_TARGET='-g -O2 -ffunction-sections -fdata-sections'
+  cd $srcdir/build-newlib
+  ../newlib-$_upstream_ver/configure \
+--target=$_target \
+--prefix=/usr \
+--disable-newlib-supplied-syscalls \
+--disable-nls \
+--enable-newlib-io-long-long \
+--enable-newlib-register-fini
+  make
+
+  export CFLAGS_FOR_TARGET='-g -Os -ffunction-sections -fdata-sections'
+  cd $srcdir/build-nano
+  ../newlib-$_upstream_ver/configure \
+--target=$_target \
+--prefix=/usr \
+--disable-newlib-supplied-syscalls \
+--disable-nls \
+--enable-newlib-reent-small   \
+--disable-newlib-fvwrite-in-streamio  \
+--disable-newlib-fseek-optimization   \
+--disable-newlib-wide-orient  \
+--enable-newlib-nano-malloc   \
+--disable-newlib-unbuf-stream-opt \
+--enable-lite-exit\
+--enable-newlib-global-atexit \
+--enable-newlib-nano-formatted-io
+  make
+}
+
+package() {
+  cd $srcdir/build-nano
+  make DESTDIR=$pkgdir install -j1
+  find $pkgdir -regex .*/lib\(c\|g\|rdimon\)\.a -exec rename .a _nano.a 
'{}' \;
+
+  cd $srcdir/build-newlib
+  make DESTDIR=$pkgdir install -j1
+
+  find $pkgdir/usr/$_target/lib \( -name *.a -or -name *.o \) -exec 
$_target-objcopy -R .comment -R .note -R .debug_info -R .debug_aranges -R 
.debug_pubnames -R .debug_pubtypes -R .debug_abbrev -R .debug_line -R 
.debug_str -R .debug_ranges -R .debug_loc '{}' \;
+
+  rm $pkgdir/usr/share/info/*.info
+
+  install -d $pkgdir/usr/share/licenses/$pkgname/
+  install -m644 -t $pkgdir/usr/share/licenses/$pkgname/ 
$srcdir/newlib-$_upstream_ver/COPYING*
+}


[arch-commits] Commit in arm-none-eabi-newlib/repos (2 files)

2014-12-27 Thread Anatol Pomozov
Date: Saturday, December 27, 2014 @ 16:28:31
  Author: anatolik
Revision: 124708

archrelease: copy trunk to community-testing-any

Added:
  arm-none-eabi-newlib/repos/community-testing-any/
  arm-none-eabi-newlib/repos/community-testing-any/PKGBUILD
(from rev 124707, arm-none-eabi-newlib/trunk/PKGBUILD)

--+
 PKGBUILD |   65 +
 1 file changed, 65 insertions(+)

Copied: arm-none-eabi-newlib/repos/community-testing-any/PKGBUILD (from rev 
124707, arm-none-eabi-newlib/trunk/PKGBUILD)
===
--- community-testing-any/PKGBUILD  (rev 0)
+++ community-testing-any/PKGBUILD  2014-12-27 15:28:31 UTC (rev 124708)
@@ -0,0 +1,65 @@
+# $Id$
+# Maintainer: Anatol Pomozov anatol.pomo...@gmail.com
+
+_target=arm-none-eabi
+pkgname=$_target-newlib
+pkgver=2.1.0
+pkgrel=3
+pkgdesc='A C standard library implementation intended for use on embedded 
systems (ARM bare metal)'
+arch=(any)
+url='http://www.sourceware.org/newlib/'
+license=(BSD)
+makedepends=($_target-gcc git)
+options=(!emptydirs !strip staticlibs !buildflags)
+# newlib 2.1.0 does not have newlib-nano integrated yet. Let's use the latest 
HEAD until 2.1.1 release.
+source=(git://sourceware.org/git/newlib.git#commit=0daa4d6f9b06af8530e50d0dce793ef9a5292aec)
+sha1sums=('SKIP')
+
+build() {
+  rm -rf build-{newlib,nano}
+  mkdir build-{newlib,nano}
+
+  export CFLAGS_FOR_TARGET='-g -O2 -ffunction-sections -fdata-sections'
+  cd $srcdir/build-newlib
+  ../newlib/configure \
+--target=$_target \
+--prefix=/usr \
+--disable-newlib-supplied-syscalls \
+--disable-nls \
+--enable-newlib-io-long-long \
+--enable-newlib-register-fini
+  make
+
+  export CFLAGS_FOR_TARGET='-g -Os -ffunction-sections -fdata-sections'
+  cd $srcdir/build-nano
+  ../newlib/configure \
+--target=$_target \
+--prefix=/usr \
+--disable-newlib-supplied-syscalls \
+--disable-nls \
+--enable-newlib-reent-small   \
+--disable-newlib-fvwrite-in-streamio  \
+--disable-newlib-fseek-optimization   \
+--disable-newlib-wide-orient  \
+--enable-newlib-nano-malloc   \
+--disable-newlib-unbuf-stream-opt \
+--enable-lite-exit\
+--enable-newlib-global-atexit
+  make
+}
+
+package() {
+  cd $srcdir/build-nano
+  make DESTDIR=$pkgdir install -j1
+  find $pkgdir -regex .*/lib\(c\|g\|rdimon\)\.a -exec rename .a _nano.a 
'{}' \;
+
+  cd $srcdir/build-newlib
+  make DESTDIR=$pkgdir install -j1
+
+  find $pkgdir/usr/$_target/lib \( -name *.a -or -name *.o \) -exec 
$_target-objcopy -R .comment -R .note -R .debug_info -R .debug_aranges -R 
.debug_pubnames -R .debug_pubtypes -R .debug_abbrev -R .debug_line -R 
.debug_str -R .debug_ranges -R .debug_loc '{}' \;
+
+  rm $pkgdir/usr/share/info/*.info
+
+  install -d $pkgdir/usr/share/licenses/$pkgname/
+  install -m644 -t $pkgdir/usr/share/licenses/$pkgname/ 
$srcdir/newlib/COPYING*
+}