academic/cryptominisat: Fix build.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
alaNOn_aversa@lavabSPAMit.com 2024-03-24 17:40:22 +07:00 committed by Willy Sudiarto Raharjo
parent 5c172fe272
commit 1db33d4321
No known key found for this signature in database
GPG key ID: 3F617144D7238786

View file

@ -89,12 +89,17 @@ cd build
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib${LIBDIRSUFFIX} \ -DCMAKE_INSTALL_LIBDIR=lib${LIBDIRSUFFIX} \
-DUSE_GAUSS=ON \ -DIPASIR=ON \
-DSTATICCOMPILE=ON \
-DCMAKE_BUILD_TYPE=Release .. -DCMAKE_BUILD_TYPE=Release ..
make make
make install DESTDIR=$PKG make install DESTDIR=$PKG
cd .. cd ..
# include source code:
mkdir -p $PKG/usr/src
cp -a src $PKG/usr/src/$PRGNAM
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ 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 | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true