summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorPhilipp Claßen2019-05-03 00:04:42 +0200
committerPhilipp Claßen2019-05-03 01:38:25 +0200
commit29cd6e2261aaa2bd9546f2b54acd53b331b554f3 (patch)
tree9d9ef9dd988542872691ddc769eba10f43bdf607 /PKGBUILD
parent6012618d8a19ce61d098f2e81b1d488638825bac (diff)
downloadaur-29cd6e2261aaa2bd9546f2b54acd53b331b554f3.tar.gz
Enabled Fortran support to be closer to the "gcc" package.
(Before the change, it failed to install if "gcc-fortran" is installed.)
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD28
1 files changed, 25 insertions, 3 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 6a068c4e464..66991cc1f80 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,8 +1,8 @@
# Maintainer: Philipp Claßen <philipp.classen@posteo.de>
pkgbase="gcc-multilib-trunk-git"
-pkgname=('gcc-multilib-git' 'gcc-libs-multilib-git' 'lib32-gcc-libs-git' 'gcc-objc-multilib-git')
-pkgver=10.0.0.r168552.ade32724c83
+pkgname=('gcc-multilib-git' 'gcc-libs-multilib-git' 'lib32-gcc-libs-git' 'gcc-objc-multilib-git' 'gcc-fortran-multilib-git')
+pkgver=10.0.0.r168586.9766cefe693
_pkgver_base=10.0.0
pkgrel=1
pkgdesc="The GNU Compiler Collection developmental snapshot"
@@ -63,7 +63,7 @@ build() {
--libdir=/usr/lib --libexecdir=/usr/lib \
--mandir=/usr/share/man --infodir=/usr/share/info \
--with-bugurl=https://bugs.archlinux.org/ \
- --enable-languages=c,c++,lto,objc,obj-c++ \
+ --enable-languages=c,c++,fortran,lto,objc,obj-c++ \
--enable-shared --enable-threads=posix \
--with-system-zlib --enable-__cxa_atexit \
--disable-libunwind-exceptions --enable-clocale=gnu \
@@ -202,6 +202,28 @@ EOF
ln -s ../gcc-libs-multilib/RUNTIME.LIBRARY.EXCEPTION ${pkgdir}/usr/share/licenses/gcc-multilib/
}
+package_gcc-fortran-multilib-git() {
+ pkgdesc='Fortran front-end for GCC for multilib'
+ depends=("gcc-multilib-git=$pkgver-$pkgrel")
+ provides=("gcc-fortran-multilib=${pkgver}-${pkgrel}" "gcc-fortran=${pkgver}-${pkgrel}")
+ conflicts=('gcc-fortran')
+ options=('!emptydirs' '!strip')
+
+ cd "${srcdir}/gcc-build"
+ make -C $CHOST/libgfortran DESTDIR="$pkgdir" install-cafexeclibLTLIBRARIES \
+ install-{toolexeclibDATA,nodist_fincludeHEADERS}
+ make -C $CHOST/32/libgfortran DESTDIR=$pkgdir install-cafexeclibLTLIBRARIES \
+ install-{toolexeclibDATA,nodist_fincludeHEADERS}
+ make -C $CHOST/libgomp DESTDIR="$pkgdir" install-nodist_fincludeHEADERS
+ make -C gcc DESTDIR="$pkgdir" fortran.install-{common,man,info}
+ install -Dm755 gcc/f951 "$pkgdir/${_libdir}/f951"
+
+ ln -s gfortran "$pkgdir/usr/bin/f95"
+
+ # Install Runtime Library Exception
+ install -d "$pkgdir/usr/share/licenses/gcc-fortran-multilib/"
+ ln -s ../gcc-libs-multilib/RUNTIME.LIBRARY.EXCEPTION "$pkgdir/usr/share/licenses/gcc-fortran-multilib/"
+}
package_gcc-libs-multilib-git()
{