git » sdcc.git » commit 97ac432

sdcc: move to AUR

author Bartłomiej Piotrowski
2018-01-07 17:37:27 UTC
committer Bartłomiej Piotrowski
2018-01-07 17:37:27 UTC
parent 3c4374152c0098d6fb16becf56ff0e904d4634df

sdcc: move to AUR

PKGBUILD +0 -51
glibc220-build-fix.patch +0 -13

diff --git a/PKGBUILD b/PKGBUILD
deleted file mode 100644
index 62d7496..0000000
--- a/PKGBUILD
+++ /dev/null
@@ -1,51 +0,0 @@
-# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
-# Maintainer: Jose Negron <josenj.arch@mailnull.net>
-
-pkgname=sdcc
-pkgver=3.6.0
-pkgrel=4
-pkgdesc="Retargettable ANSI C compiler (Intel 8051, Maxim 80DS390, Zilog Z80 and the Motorola 68HC08)"
-arch=('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
-}
diff --git a/glibc220-build-fix.patch b/glibc220-build-fix.patch
deleted file mode 100644
index 72c3ea4..0000000
--- a/glibc220-build-fix.patch
+++ /dev/null
@@ -1,13 +0,0 @@
-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