diff options
author | Kevin McCormack | 2018-11-25 19:50:46 -0500 |
---|---|---|
committer | Kevin McCormack | 2018-11-25 19:50:46 -0500 |
commit | 74bb41467186be70f24b7639c958050d734493ec (patch) | |
tree | 6a2ca06d3013f9bc640c2fabe008c9ea2e62af0e | |
parent | 1663b0724d5139493ac38abcddd5d10a7e2c58a7 (diff) | |
download | aur-74bb41467186be70f24b7639c958050d734493ec.tar.gz |
Allow different versions of gcc fortran
-rw-r--r-- | PKGBUILD | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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() { |