diff options
author | David Spencer <idlemoor@slackbuilds.org> | 2016-01-07 01:40:19 +0000 |
---|---|---|
committer | David Spencer <idlemoor@slackbuilds.org> | 2016-01-07 01:40:19 +0000 |
commit | cab5c4d4bf95e10cc071421dabefa41afb7a4d1e (patch) | |
tree | 7bf1a5182872a0264eea699d0301b85ccaf620a7 /academic/sundials | |
parent | ffda167b71d9fee46246133c5e140a8693c19f4a (diff) | |
download | slackbuilds-cab5c4d4bf95e10cc071421dabefa41afb7a4d1e.tar.gz |
academic/sundials: Use /usr/lib64 on x86_64.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'academic/sundials')
-rw-r--r-- | academic/sundials/sundials.SlackBuild | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/academic/sundials/sundials.SlackBuild b/academic/sundials/sundials.SlackBuild index f3658e990a..46375d2908 100644 --- a/academic/sundials/sundials.SlackBuild +++ b/academic/sundials/sundials.SlackBuild @@ -62,19 +62,28 @@ cd $TMP rm -rf $PRGNAM-$VERSION tar xvf $CWD/$PRGNAM-$VERSION.tar.gz cd $PRGNAM-$VERSION -mkdir build chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ - -o -perm 511 \) -exec chmod 755 {} \; -o \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -cd build -cmake -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_SHARED_LIBS=BOOL:ON "../" -make -make DESTDIR="$PKG/" install +sed -i \ + -e 's:DESTINATION lib:DESTINATION lib${LIB_SUFFIX}:' \ + src/*/CMakeLists.txt \ + src/*/*/CMakeLists.txt +mkdir -p build +cd build + cmake \ + -DCMAKE_C_FLAGS_RELEASE:STRING="$SLKCFLAGS" \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DLIB_SUFFIX=${LIBDIRSUFFIX} \ + -DBUILD_SHARED_LIBS=BOOL:ON \ + -DCMAKE_BUILD_TYPE=Release .. + make + make install DESTDIR=$PKG cd .. find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ |