summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorConnor Behan2020-10-01 23:55:52 +0100
committerConnor Behan2020-10-01 23:55:52 +0100
commitdca842ded43a6fc703941c4fcd7e927be65c0b2d (patch)
tree596e95f159a3f8911f58b0b6da103e521e18dae8
parent8b0dfb3b313a145de08549b59f36062c57a91aa2 (diff)
downloadaur-dca842ded43a6fc703941c4fcd7e927be65c0b2d.tar.gz
Set to build with gcc9
-rw-r--r--.SRCINFO5
-rw-r--r--PKGBUILD9
2 files changed, 9 insertions, 5 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 9ad933721e3..dac18aac734 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,13 +1,14 @@
pkgbase = gracegtk
pkgdesc = A port of the Grace plotting tool to gtk2
pkgver = 1.0.2
- pkgrel = 1
+ pkgrel = 2
url = http://plasma-gate.weizmann.ac.il/Grace/
arch = i686
arch = x86_64
license = GPL
makedepends = linuxdoc-tools
- makedepends = gcc-fortran
+ makedepends = gcc9
+ makedepends = gcc9-fortran
depends = libjpeg
depends = fftw
depends = t1lib
diff --git a/PKGBUILD b/PKGBUILD
index 63ddece0eb1..d73b3f689d1 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,12 +2,12 @@
pkgname=gracegtk
pkgver=1.0.2
-pkgrel=1
+pkgrel=2
pkgdesc="A port of the Grace plotting tool to gtk2"
arch=(i686 x86_64)
url="http://plasma-gate.weizmann.ac.il/Grace/"
depends=('libjpeg' 'fftw' 't1lib' 'netcdf' 'pdflib-lite' 'gtk2')
-makedepends=('linuxdoc-tools' 'gcc-fortran')
+makedepends=('linuxdoc-tools' 'gcc9' 'gcc9-fortran')
license=('GPL')
source=(http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tgz window_close.patch $pkgname.png $pkgname.desktop $pkgname-mimetypes ggrace)
@@ -29,8 +29,11 @@ build() {
sed -i -e 's|SIZEOF_CHAR|sizeof(char)|g' src/*.c src/pars.yacc
sed -i -e 's|SIZEOF_VOID_P|sizeof(void *)|g' src/*.c grace_np/*.c
+ export CC=/usr/bin/gcc-9
+ export CXX=/usr/bin/g++-9
+ export FC=/usr/bin/gfortran-9
sed -i -e 's| -V -qversion||g' ./configure
- FCFLAGS="-g" ./configure --prefix=/usr --with-f77=/usr/bin/gfortran
+ FCFLAGS="-g" ./configure --prefix=/usr --with-f77=/usr/bin/gfortran-9
make
}