summaryrefslogtreecommitdiff
path: root/libre-testing
diff options
context:
space:
mode:
authorFreemor <freemor@freemor.ca>2019-02-02 22:05:21 -0400
committerFreemor <freemor@freemor.ca>2019-02-02 22:05:21 -0400
commit8346b70611e3062aebc7bc8a357e4cdd2a4b24be (patch)
tree6d3af15d8338544e7903b2d284ed4624ee5e41ad /libre-testing
parent424bd40d884f503692d2bcab945375ecae07542e (diff)
downloadabslibre-8346b70611e3062aebc7bc8a357e4cdd2a4b24be.tar.gz
abslibre-8346b70611e3062aebc7bc8a357e4cdd2a4b24be.tar.bz2
abslibre-8346b70611e3062aebc7bc8a357e4cdd2a4b24be.zip
Create a testing varsion on [libre/sdcc] for evaluation before making it an official [libre] package re: #2160
Diffstat (limited to 'libre-testing')
-rw-r--r--libre-testing/sdcc/PKGBUILD56
1 files changed, 56 insertions, 0 deletions
diff --git a/libre-testing/sdcc/PKGBUILD b/libre-testing/sdcc/PKGBUILD
new file mode 100644
index 000000000..296e34454
--- /dev/null
+++ b/libre-testing/sdcc/PKGBUILD
@@ -0,0 +1,56 @@
+# Maintainer: Freemor <freemor@freemor.ca>
+# Maintainer (ARCH): Kyle Keen <keenerd@gmail.com>
+# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Contributor: Jose Negron <josenj.arch@mailnull.net>
+
+# Rationale for Libre:
+# Remove non-free PIC Headers etc.
+
+
+
+pkgname=sdcc
+pkgver=3.8.0
+pkgrel=2
+pkgrel+=.parabola1
+pkgdesc="Retargettable ANSI C compiler (Intel 8051, Maxim 80DS390, Zilog Z80 and the Motorola 68HC08) without non-free PIC"
+arch=('x86_64' 'i686' 'armv7h')
+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=(https://downloads.sourceforge.net/sourceforge/sdcc/$pkgname-src-${pkgver//_/-}.tar.bz2)
+md5sums=('31d0d3db8a157018e3df530c50a3974e')
+
+# namcap claims boost-libs isn't needed, investigate this
+
+prepare() {
+ cd "$srcdir/$pkgname-$pkgver"
+ sed -i 's|CC -E|CC -O2 -E|g' support/sdbinutils/libiberty/configure
+}
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+ ./configure \
+ --prefix=/usr \
+ --includedir=/usr/include/sdcc \
+ --libdir=/usr/lib/sdcc \
+ --disable-werror \
+ --disable-pic14-port \
+ --disable-pic16-port
+ 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"
+}