summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven-Hendrik Haase <svenstaro@gmail.com>2018-05-07 20:23:20 +0200
committerSven-Hendrik Haase <svenstaro@gmail.com>2018-05-07 20:23:20 +0200
commit88458828edcaf58c9ca9b1b652c838ace8f6653f (patch)
tree99244e11a9edf2020eb008701a628b682e82ff0c
parent9ce0c38564814935977b12e697be0e7845a96a83 (diff)
Update and build from git
-rw-r--r--PKGBUILD29
1 files changed, 15 insertions, 14 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 4b48365..e62f2f6 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,5 +1,6 @@
# $Id$
-# Maintainer: Sebastiaan Lokhorst <sebastiaanlokhorst@gmail.com>
+# Maintainer: Sven-Hendrik Haase <svenstaro@gmail.com>
+# Contributor: Sebastiaan Lokhorst <sebastiaanlokhorst@gmail.com>
# Contributor: Ruben Van Boxem <vanboxem.ruben@gmail.com>
# Contributor: Allan McRae <allan@archlinux.org>
@@ -7,22 +8,22 @@ pkgname=('gcc5')
pkgver=5.5.0
_pkgver=5
_islver=0.18
-pkgrel=4
+pkgrel=1
pkgdesc="The GNU Compiler Collection (5.x.x)"
arch=('i686' 'x86_64')
license=('GPL' 'LGPL' 'FDL' 'custom')
url="http://gcc.gnu.org"
depends=('glibc>=2.23' 'binutils>=2.26' 'libmpc')
+makedepends=('git')
options=('!emptydirs')
-source=(ftp://gcc.gnu.org/pub/gcc/releases/gcc-${pkgver}/gcc-${pkgver}.tar.xz
+_commit=ba9cddfdab8b539b788cd6fe0171351ae43c32da
+source=(git+https://gcc.gnu.org/git/gcc.git#commit=${_commit}
http://isl.gforge.inria.fr/isl-${_islver}.tar.bz2)
-md5sums=('0f70424213b4a1113c04ba66ddda0c1f'
- '11436d6b205e516635b666090b94ab32')
-
-_basedir=gcc-${pkgver}
+sha512sums=('SKIP'
+ '85d0b40f4dbf14cb99d17aa07048cdcab2dc3eb527d2fbb1e84c41b2de5f351025370e57448b63b2b8a8cf8a0843a089c3263f9baee1542d5c2e1cb37ed39d94')
prepare() {
- cd ${srcdir}/${_basedir}
+ cd gcc
# link isl for in-tree build
ln -s ../isl-${_islver} isl
@@ -42,7 +43,7 @@ prepare() {
}
build() {
- cd ${srcdir}/gcc-build
+ cd gcc-build
# using -pipe causes spurious test-suite failures
# http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48565
@@ -53,7 +54,7 @@ build() {
CFLAGS=${CFLAGS/-fno-plt/}
CXXFLAGS=${CXXFLAGS/-fno-plt/}
- ${srcdir}/${_basedir}/configure --prefix=/usr \
+ ${srcdir}/gcc/configure --prefix=/usr \
--build=${CHOST} \
--libdir=/usr/lib --libexecdir=/usr/lib \
--mandir=/usr/share/man --infodir=/usr/share/info \
@@ -76,18 +77,18 @@ build() {
}
package() {
- cd ${srcdir}/gcc-build
+ cd gcc-build
make -j1 DESTDIR=${pkgdir} install
-
+
# Lazy way of dealing with conflicting files...
rm -rf ${pkgdir}/usr/share/{info,locale,man}
# Move potentially conflicting stuff to version specific subdirectory
[[ -d ${pkgdir}/usr/lib ]] && mv ${pkgdir}/usr/lib/lib* ${pkgdir}/usr/lib/gcc/${CHOST}/${pkgver}/
[[ -d ${pkgdir}/usr/lib/gcc/${CHOST}/lib/ ]] && mv ${pkgdir}/usr/lib/gcc/${CHOST}/lib/lib* ${pkgdir}/usr/lib/gcc/${CHOST}/${pkgver}/
-
+
# Install Runtime Library Exception
- install -Dm644 ${srcdir}/${_basedir}/COPYING.RUNTIME \
+ install -Dm644 ${srcdir}/gcc/COPYING.RUNTIME \
${pkgdir}/usr/share/licenses/$pkgname/RUNTIME.LIBRARY.EXCEPTION
}