From 8abe0e90c9c231f2b3d6e9304abd6980d3ecd0f9 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sun, 2 Jul 2017 13:55:02 +0200 Subject: added patch for 32-bit build of pcc releaase 1.1.0 --- adapted/pcc/.SRCINFO | 15 ++++++++++ adapted/pcc/PKGBUILD | 41 ++++++++++++++++++++++++++++ adapted/pcc/license | 24 ++++++++++++++++ adapted/pcc/pcc-1.1.0-32bit-deflibdirs.patch | 12 ++++++++ 4 files changed, 92 insertions(+) create mode 100644 adapted/pcc/.SRCINFO create mode 100644 adapted/pcc/PKGBUILD create mode 100644 adapted/pcc/license create mode 100644 adapted/pcc/pcc-1.1.0-32bit-deflibdirs.patch (limited to 'adapted') diff --git a/adapted/pcc/.SRCINFO b/adapted/pcc/.SRCINFO new file mode 100644 index 0000000..82e8bc9 --- /dev/null +++ b/adapted/pcc/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = pcc + pkgdesc = A Portable C Compiler + pkgver = 1.1.0 + pkgrel = 1 + url = http://pcc.ludd.ltu.se/ + arch = i686 + arch = x86_64 + license = custom:BSD + depends = pcc-libs + source = http://pcc.ludd.ltu.se/ftp/pub/pcc-releases/pcc-1.1.0.tgz + source = license + sha512sums = 5bd2b59fbb323016d215023ce77793ae66766e8e8192b44bf0707ee444658022e1645669c13eea8c81bc55c161eea3b0271d6b3098b8a7d51ce67eb86c7527b4 + sha512sums = 53cd45a41e994f9825d50e0db415ab21960fc03a11cafdbe09b044e92c2d1f7e22c825be3e91f34dd767890cbb8f506f589d94aa1ac5abf8b16535464d4bc11b + +pkgname = pcc diff --git a/adapted/pcc/PKGBUILD b/adapted/pcc/PKGBUILD new file mode 100644 index 0000000..e558c8d --- /dev/null +++ b/adapted/pcc/PKGBUILD @@ -0,0 +1,41 @@ +# Maintainer: Gordian Edenhofer +# Submitter: Andreas Baumann + +pkgname=pcc +pkgver=1.1.0 +pkgrel=1 +pkgdesc="A Portable C Compiler" +arch=('i686' 'x86_64') +url="http://pcc.ludd.ltu.se/" +license=('custom:BSD') +depends=('pcc-libs') +source=("http://pcc.ludd.ltu.se/ftp/pub/pcc-releases/${pkgname}-${pkgver}.tgz" + "license" + "pcc-1.1.0-32bit-deflibdirs.patch") +sha512sums=('5bd2b59fbb323016d215023ce77793ae66766e8e8192b44bf0707ee444658022e1645669c13eea8c81bc55c161eea3b0271d6b3098b8a7d51ce67eb86c7527b4' + '53cd45a41e994f9825d50e0db415ab21960fc03a11cafdbe09b044e92c2d1f7e22c825be3e91f34dd767890cbb8f506f589d94aa1ac5abf8b16535464d4bc11b' + 'e283dc417b610fdc8207d52d788960c4da73c17fb610258126ab576e35ccbff2cdb9b5c2388a57a32d2c8ee60bbf13c016d94999e31f8155b78432e17b773831') + +prepare() { + cd "${srcdir}/${pkgname}-${pkgver}" + patch -Np1 -i "${srcdir}/pcc-1.1.0-32bit-deflibdirs.patch" +} + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + + ./configure \ + --prefix=/usr \ + --libexecdir=/usr/lib/pcc + + make +} + +package(){ + cd "${srcdir}/${pkgname}-${pkgver}" + + make DESTDIR="${pkgdir}" install + + mv "${pkgdir}/usr/share/man/man1/cpp.1" "${pkgdir}/usr/share/man/man1/pcpp.1" + install -D -m0644 ../license "${pkgdir}/usr/share/licenses/${pkgname}/license" +} diff --git a/adapted/pcc/license b/adapted/pcc/license new file mode 100644 index 0000000..027142c --- /dev/null +++ b/adapted/pcc/license @@ -0,0 +1,24 @@ + Copyright (c) 2004 Anders Magnusson (ragge@ludd.luth.se). + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + 1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + 3. The name of the author may not be used to endorse or promote products + derived from this software without specific prior written permission + + THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR + IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. + IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, + INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT + NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF + THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/adapted/pcc/pcc-1.1.0-32bit-deflibdirs.patch b/adapted/pcc/pcc-1.1.0-32bit-deflibdirs.patch new file mode 100644 index 0000000..1fd6298 --- /dev/null +++ b/adapted/pcc/pcc-1.1.0-32bit-deflibdirs.patch @@ -0,0 +1,12 @@ +diff -rauN pcc-1.1.0/cc/cc/cc.c pcc-1.1.0-32bit-deflibdirs-patch/cc/cc/cc.c +--- pcc-1.1.0/cc/cc/cc.c 2014-12-06 10:52:55.000000000 +0100 ++++ pcc-1.1.0-32bit-deflibdirs-patch/cc/cc/cc.c 2017-07-02 13:47:38.610284606 +0200 +@@ -206,7 +206,7 @@ + #define PCCLIBDIR NULL + #endif + #ifndef DEFLIBDIRS /* default library search paths */ +-#ifdef MULTIARCH_PATH ++#ifndef MULTIARCH_PATH + #define DEFLIBDIRS { "/usr/lib/", 0 } + #else + #define DEFLIBDIRS { "/usr/lib/", "/usr/lib/" MULTIARCH_PATH "/", 0 } -- cgit v1.2.3-54-g00ecf