summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin McCormack2018-11-25 19:50:46 -0500
committerKevin McCormack2018-11-25 19:50:46 -0500
commit74bb41467186be70f24b7639c958050d734493ec (patch)
tree6a2ca06d3013f9bc640c2fabe008c9ea2e62af0e
parent1663b0724d5139493ac38abcddd5d10a7e2c58a7 (diff)
downloadaur-74bb41467186be70f24b7639c958050d734493ec.tar.gz
Allow different versions of gcc fortran
-rw-r--r--PKGBUILD6
1 files changed, 3 insertions, 3 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 1f89931d784..06d8ba0f1b6 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
# https://code.alephobjects.com/w/cura-lulzbot/
pkgname=cura-lulzbot
pkgver=3.2.32
-pkgrel=1
+pkgrel=2
pkgdesc='Cura LulzBot Edition for LulzBot 3D Printers by Aleph Objects, Inc.'
arch=('x86_64')
url='https://www.lulzbot.com/cura'
@@ -15,8 +15,8 @@ prepare() {
# Unpack the tarball containing the 'usr/' directory,
# where all the essentials reside within the debian package
tar zxf "${srcdir}/data.tar".gz -C "${srcdir}"
-
- sed -i 's;LD_LIBRARY_PATH=;LD_LIBRARY_PATH=/usr/lib/gcc/x86_64-pc-linux-gnu/6.4.1:;' "${srcdir}/usr/bin/cura-lulzbot"
+ fortran_lib_dir=`dirname $(find /usr/lib/gcc/x86_64-pc-linux-gnu/ -name libgfortran.so.3)`
+ sed -i "s;LD_LIBRARY_PATH=;LD_LIBRARY_PATH=${fortran_lib_dir}:;" "${srcdir}/usr/bin/cura-lulzbot"
}
package() {