diff options
author | Dan Maftei | 2018-05-24 10:45:03 +0300 |
---|---|---|
committer | Dan Maftei | 2018-05-24 10:45:03 +0300 |
commit | 1a85039531a70e420460ce9e9e5a5c7cbc4da470 (patch) | |
tree | b3d63797fc8e3ee987d8cd88c5aa2869bb1f259e | |
parent | d501d1e420d582b05e1dd98a72c40864ea208abc (diff) | |
download | aur-1a85039531a70e420460ce9e9e5a5c7cbc4da470.tar.gz |
Fixed a compilation error on newer gfortran (rdchx.f).
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 13 | ||||
-rw-r--r-- | rdchx.patch | 11 |
3 files changed, 24 insertions, 2 deletions
@@ -18,7 +18,9 @@ pkgbase = molden optdepends = wget: to fetch PDB from rcsb.org provides = molden source = ftp://ftp.cmbi.ru.nl/pub/molgraph/molden/molden5.7.tar.gz + source = rdchx.patch md5sums = 1b33fc2fda6429f1945ffa3c291ccd97 + md5sums = 902d3fc3ebdb928fac38deb2ba7d5f94 pkgname = molden @@ -27,15 +27,24 @@ backup=() options=() install= changelog= -source=(ftp://ftp.cmbi.ru.nl/pub/molgraph/molden/$pkgname$pkgver.tar.gz) +source=( + "ftp://ftp.cmbi.ru.nl/pub/molgraph/molden/$pkgname$pkgver.tar.gz" + "rdchx.patch" +) noextract=() -md5sums=('1b33fc2fda6429f1945ffa3c291ccd97') +md5sums=('1b33fc2fda6429f1945ffa3c291ccd97' + '902d3fc3ebdb928fac38deb2ba7d5f94') build() { cd "$pkgname$pkgver" # Patch Makefile for surf utility to reflect the # replacement of missing makedepend sed -i 's/@.*makedepend.*$/@ \$(CC) \$(INCLUDE) -M \$(SRCS) \> makedep/' surf/Makefile + + # Patch rdchx.f for iconn dimension, + # thanks Panadestein for pointing out and + # arjun_karol for the solution + patch -p0 -i rdchx.patch make } diff --git a/rdchx.patch b/rdchx.patch new file mode 100644 index 000000000000..a323a731d20b --- /dev/null +++ b/rdchx.patch @@ -0,0 +1,11 @@ +--- rdchx.f 2017-09-20 16:39:46.000000000 +0300 ++++ rdchx.f.new 2018-05-24 10:38:11.820760091 +0300 +@@ -6016,7 +6016,7 @@ + subroutine flth(iat,icnn,ibnds,iconn) + implicit double precision (a-h,p-z),integer (i-n),logical (o) + parameter (mxcon=10) +- dimension iconn(mxcon+1,*),icnn(mxcon+1) ++ dimension iconn(mxcon,*),icnn(mxcon) + + ibnds = 0 + do i=1,iconn(1,iat) |