[arch-commits] Commit in sdcc/repos (6 files)
Evangelos Foutras
foutrelis at archlinux.org
Sun Dec 6 20:36:33 UTC 2015
Date: Sunday, December 6, 2015 @ 21:36:33
Author: foutrelis
Revision: 149182
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 149181, sdcc/trunk/PKGBUILD)
sdcc/repos/community-staging-i686/glibc220-build-fix.patch
(from rev 149181, sdcc/trunk/glibc220-build-fix.patch)
sdcc/repos/community-staging-x86_64/
sdcc/repos/community-staging-x86_64/PKGBUILD
(from rev 149181, sdcc/trunk/PKGBUILD)
sdcc/repos/community-staging-x86_64/glibc220-build-fix.patch
(from rev 149181, sdcc/trunk/glibc220-build-fix.patch)
---------------------------------------------------+
community-staging-i686/PKGBUILD | 51 ++++++++++++++++++++
community-staging-i686/glibc220-build-fix.patch | 13 +++++
community-staging-x86_64/PKGBUILD | 51 ++++++++++++++++++++
community-staging-x86_64/glibc220-build-fix.patch | 13 +++++
4 files changed, 128 insertions(+)
Copied: sdcc/repos/community-staging-i686/PKGBUILD (from rev 149181, sdcc/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD (rev 0)
+++ community-staging-i686/PKGBUILD 2015-12-06 20:36:33 UTC (rev 149182)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Maintainer: Jose Negron <josenj.arch at mailnull.net>
+
+pkgname=sdcc
+pkgver=3.5.0
+pkgrel=2
+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=('e0a1df72747c481cdedbbd328b0fceae'
+ '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
+}
Copied: sdcc/repos/community-staging-i686/glibc220-build-fix.patch (from rev 149181, sdcc/trunk/glibc220-build-fix.patch)
===================================================================
--- community-staging-i686/glibc220-build-fix.patch (rev 0)
+++ community-staging-i686/glibc220-build-fix.patch 2015-12-06 20:36:33 UTC (rev 149182)
@@ -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 149181, sdcc/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2015-12-06 20:36:33 UTC (rev 149182)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Maintainer: Jose Negron <josenj.arch at mailnull.net>
+
+pkgname=sdcc
+pkgver=3.5.0
+pkgrel=2
+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=('e0a1df72747c481cdedbbd328b0fceae'
+ '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
+}
Copied: sdcc/repos/community-staging-x86_64/glibc220-build-fix.patch (from rev 149181, sdcc/trunk/glibc220-build-fix.patch)
===================================================================
--- community-staging-x86_64/glibc220-build-fix.patch (rev 0)
+++ community-staging-x86_64/glibc220-build-fix.patch 2015-12-06 20:36:33 UTC (rev 149182)
@@ -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