[arch-commits] Commit in sdcc/repos (6 files)
Evangelos Foutras
foutrelis at archlinux.org
Sun Nov 6 19:58:43 UTC 2016
Date: Sunday, November 6, 2016 @ 19:58:42
Author: foutrelis
Revision: 194760
archrelease: copy trunk to community-staging-i686, community-staging-x86_64
Added:
sdcc/repos/community-staging-i686/
sdcc/repos/community-staging-i686/PKGBUILD
(from rev 194759, sdcc/trunk/PKGBUILD)
sdcc/repos/community-staging-i686/glibc220-build-fix.patch
(from rev 194759, sdcc/trunk/glibc220-build-fix.patch)
sdcc/repos/community-staging-x86_64/
sdcc/repos/community-staging-x86_64/PKGBUILD
(from rev 194759, sdcc/trunk/PKGBUILD)
sdcc/repos/community-staging-x86_64/glibc220-build-fix.patch
(from rev 194759, sdcc/trunk/glibc220-build-fix.patch)
---------------------------------------------------+
community-staging-i686/PKGBUILD | 52 ++++++++++++++++++++
community-staging-i686/glibc220-build-fix.patch | 13 +++++
community-staging-x86_64/PKGBUILD | 52 ++++++++++++++++++++
community-staging-x86_64/glibc220-build-fix.patch | 13 +++++
4 files changed, 130 insertions(+)
Copied: sdcc/repos/community-staging-i686/PKGBUILD (from rev 194759, sdcc/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD (rev 0)
+++ community-staging-i686/PKGBUILD 2016-11-06 19:58:42 UTC (rev 194760)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Maintainer: Jose Negron <josenj.arch at mailnull.net>
+
+pkgname=sdcc
+pkgver=3.6.0
+pkgrel=3
+pkgdesc="Retargettable ANSI C compiler (Intel 8051, Maxim 80DS390, Zilog Z80 and the Motorola 68HC08)"
+arch=('i686' 'x86_64')
+license=('GPL')
+depends=('bash' 'gcc-libs' 'boost-libs')
+makedepends=('gputils' 'flex' 'bison' 'patch' 'boost')
+optdepends=('python')
+url="http://sdcc.sourceforge.net/"
+options=(!strip staticlibs)
+source=(http://downloads.sourceforge.net/sourceforge/sdcc/$pkgname-src-$pkgver.tar.bz2
+ glibc220-build-fix.patch)
+md5sums=('4c4cf17d8d2b2d37af66c5b7511f62d8'
+ 'de3be2a60baaafbdbfe5efaaacbb3028')
+
+prepare() {
+ cd "$srcdir"/$pkgname-$pkgver
+ sed -i 's|CC -E|CC -O2 -E|g' support/sdbinutils/libiberty/configure
+
+ # Fix build with glibc 2.20
+ # http://sourceforge.net/p/sdcc/bugs/2303/
+ patch -Np0 -i ../glibc220-build-fix.patch
+}
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure \
+ --prefix=/usr \
+ --includedir=/usr/include/sdcc \
+ --libdir=/usr/lib/sdcc \
+ --disable-werror
+ make
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+
+ make install DESTDIR="$pkgdir"
+
+ if [ -d "$pkgdir"/usr/lib/lib ]; then
+ mv "$pkgdir"/usr/lib/lib/* "$pkgdir"/usr/lib/sdcc/
+ rm -rf "$pkgdir"/usr/lib/lib
+ fi
+
+ sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python3|' "$pkgdir"/usr/bin/as2gbmap
+ rm -rf "$pkgdir"/usr/share/info
+}
Copied: sdcc/repos/community-staging-i686/glibc220-build-fix.patch (from rev 194759, sdcc/trunk/glibc220-build-fix.patch)
===================================================================
--- community-staging-i686/glibc220-build-fix.patch (rev 0)
+++ community-staging-i686/glibc220-build-fix.patch 2016-11-06 19:58:42 UTC (rev 194760)
@@ -0,0 +1,13 @@
+Index: sdas/linksrc/Makefile.in
+===================================================================
+--- sdas/linksrc/Makefile.in (revision 9105)
++++ sdas/linksrc/Makefile.in (revision 9106)
+@@ -35,7 +35,7 @@
+ VPATH = @srcdir@
+
+ CPPFLAGS = @CPPFLAGS@ -I.. -I$(srcdir)/..
+-CFLAGS = @CFLAGS@ @WALL_FLAG@ -DINDEXLIB -DUNIX -I. -I$(srcdir)
++CFLAGS = @CFLAGS@ @WALL_FLAG@ -DINDEXLIB -DUNIX -I. -I$(srcdir) --std=c99
+ LDFLAGS = @LDFLAGS@
+
+ OBJDIR = obj
Copied: sdcc/repos/community-staging-x86_64/PKGBUILD (from rev 194759, sdcc/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2016-11-06 19:58:42 UTC (rev 194760)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Maintainer: Jose Negron <josenj.arch at mailnull.net>
+
+pkgname=sdcc
+pkgver=3.6.0
+pkgrel=3
+pkgdesc="Retargettable ANSI C compiler (Intel 8051, Maxim 80DS390, Zilog Z80 and the Motorola 68HC08)"
+arch=('i686' 'x86_64')
+license=('GPL')
+depends=('bash' 'gcc-libs' 'boost-libs')
+makedepends=('gputils' 'flex' 'bison' 'patch' 'boost')
+optdepends=('python')
+url="http://sdcc.sourceforge.net/"
+options=(!strip staticlibs)
+source=(http://downloads.sourceforge.net/sourceforge/sdcc/$pkgname-src-$pkgver.tar.bz2
+ glibc220-build-fix.patch)
+md5sums=('4c4cf17d8d2b2d37af66c5b7511f62d8'
+ 'de3be2a60baaafbdbfe5efaaacbb3028')
+
+prepare() {
+ cd "$srcdir"/$pkgname-$pkgver
+ sed -i 's|CC -E|CC -O2 -E|g' support/sdbinutils/libiberty/configure
+
+ # Fix build with glibc 2.20
+ # http://sourceforge.net/p/sdcc/bugs/2303/
+ patch -Np0 -i ../glibc220-build-fix.patch
+}
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure \
+ --prefix=/usr \
+ --includedir=/usr/include/sdcc \
+ --libdir=/usr/lib/sdcc \
+ --disable-werror
+ make
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+
+ make install DESTDIR="$pkgdir"
+
+ if [ -d "$pkgdir"/usr/lib/lib ]; then
+ mv "$pkgdir"/usr/lib/lib/* "$pkgdir"/usr/lib/sdcc/
+ rm -rf "$pkgdir"/usr/lib/lib
+ fi
+
+ sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python3|' "$pkgdir"/usr/bin/as2gbmap
+ rm -rf "$pkgdir"/usr/share/info
+}
Copied: sdcc/repos/community-staging-x86_64/glibc220-build-fix.patch (from rev 194759, sdcc/trunk/glibc220-build-fix.patch)
===================================================================
--- community-staging-x86_64/glibc220-build-fix.patch (rev 0)
+++ community-staging-x86_64/glibc220-build-fix.patch 2016-11-06 19:58:42 UTC (rev 194760)
@@ -0,0 +1,13 @@
+Index: sdas/linksrc/Makefile.in
+===================================================================
+--- sdas/linksrc/Makefile.in (revision 9105)
++++ sdas/linksrc/Makefile.in (revision 9106)
+@@ -35,7 +35,7 @@
+ VPATH = @srcdir@
+
+ CPPFLAGS = @CPPFLAGS@ -I.. -I$(srcdir)/..
+-CFLAGS = @CFLAGS@ @WALL_FLAG@ -DINDEXLIB -DUNIX -I. -I$(srcdir)
++CFLAGS = @CFLAGS@ @WALL_FLAG@ -DINDEXLIB -DUNIX -I. -I$(srcdir) --std=c99
+ LDFLAGS = @LDFLAGS@
+
+ OBJDIR = obj
More information about the arch-commits
mailing list