diff options
Diffstat (limited to 'academic/xflr5/xflr5.SlackBuild')
-rw-r--r-- | academic/xflr5/xflr5.SlackBuild | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/academic/xflr5/xflr5.SlackBuild b/academic/xflr5/xflr5.SlackBuild index 85e09e46e9..1e20a40f35 100644 --- a/academic/xflr5/xflr5.SlackBuild +++ b/academic/xflr5/xflr5.SlackBuild @@ -23,7 +23,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=xflr5 -VERSION=${VERSION:-6.40} +VERSION=${VERSION:-6.42} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -60,7 +60,7 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM -tar xvf $CWD/${PRGNAM}_v${VERSION}_src.tar.gz +tar xvf $CWD/${PRGNAM}_${VERSION}_src.tar.gz cd $PRGNAM chown -R root:root . find -L . \ @@ -69,7 +69,11 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -patch -p0 < $CWD/fix_includes.diff +# Change default path for libraries installation +sed -i "s/target\.path = \/usr\/local\/lib/target\.path = \/usr\/lib${LIBDIRSUFFIX}/g" \ + XFoil-lib/XFoil-lib.pro +sed -i "s/target\.path = \/usr\/local\/lib/target\.path = \/usr\/lib${LIBDIRSUFFIX}/g" \ + xflr5-engine/xflr5-engine.pro qmake-qt5 \ PREFIX=/usr \ @@ -81,11 +85,6 @@ qmake-qt5 \ make make install INSTALL_ROOT=$PKG -# Rename lib directory manually, since there's no configuration option to do so -if [ -n "$LIBDIRSUFFIX" ]; then - mv $PKG/usr/lib $PKG/usr/lib${LIBDIRSUFFIX} -fi - find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true |