Package Details: sdcc-svn 3.6.9.svn10062M-1

Git Clone URL: https://aur.archlinux.org/sdcc-svn.git (read-only, click to copy)
Package Base: sdcc-svn
Description: Small Device C Compiler suite
Upstream URL: http://sdcc.sourceforge.net/
Licenses: GPL
Conflicts: sdcc
Provides: sdcc
Submitter: marzoul
Maintainer: marzoul
Last Packager: marzoul
Votes: 1
Popularity: 0.000000
First Submitted: 2014-12-04 21:09
Last Updated: 2017-10-14 08:40

Required by (7)

Sources (1)

Latest Comments

Basxto commented on 2021-02-14 04:18

I got it working:

diff --git a/PKGBUILD b/PKGBUILD
index 9d0287d..ae25115 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
 # This PKGBUILD is inspired from the package sdcc in Archlinux repos.

 pkgname=sdcc-svn
-pkgver=3.6.9.svn10062M
+pkgver=4.0.7.svn12064M
 pkgrel=1
 pkgdesc="Small Device C Compiler suite"
 url="http://sdcc.sourceforge.net/"
@@ -35,13 +35,17 @@ prepare() {
 }

 build() {
+       # workaround outdated configure script
+       # https://sourceforge.net/p/sdcc/bugs/3140/
+       cd "$srcdir/sdcc/sdcc/device/lib/pic14"
+       aclocal
+       automake
+       # actually build
        cd "$srcdir/sdcc/sdcc"
-
        ./configure \
                --prefix=/usr \
                --includedir=/usr/include/sdcc \
                --libdir=/usr/lib/sdcc \
-               --disable-werror \
                #--enable-avr-port --enable-xa51-port  # Optional: activate non-free targets

        make
@@ -56,7 +60,5 @@ package() {
                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
 }

marzoul commented on 2020-06-08 21:25

You are right. This comes from default includes and missing -I to boost compatibility headers directory. But it's not as simple as just adding it... I am investigating.

Basxto commented on 2020-06-03 13:22

Without --disable-pic14-port --disable-pic16-port this does not build for me.

marzoul commented on 2017-10-14 08:42

Fixed !

sanjuchopra commented on 2017-10-04 13:49

add subversion as dependency , otherwise it fails