|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
#!/bin/bash |
|
|
|
|
# Build script for Slackware |
|
|
|
|
# Copyright (C) 2009,2011,2012,2014,2016,2017,2019 Damien Goutte-Gattat |
|
|
|
|
# Copyright (C) 2009-2014,2016-2020 Damien Goutte-Gattat |
|
|
|
|
# |
|
|
|
|
# Redistribution and use of this script, with or without modifications, |
|
|
|
|
# is permitted provided that the following conditions are met: |
|
|
|
@ -36,7 +36,7 @@ MCPP_WGET=${MCPP_WGET:-https://github.com/zeroc-ice/mcpp/archive/v2.7.2.14.tar.g
|
|
|
|
|
|
|
|
|
|
# Build infos |
|
|
|
|
NAMEPKG=${NAMEPKG:-ice} |
|
|
|
|
BUILD=${BUILD:-1GGD} |
|
|
|
|
BUILD=${BUILD:-2GGD} |
|
|
|
|
ARCH=${ARCH:-$(uname -m | sed 's/^i.86$/i486/;s/^arm.*/arm/')} |
|
|
|
|
JOBS=${JOBS:-1} |
|
|
|
|
EXT=${EXT:-txz} |
|
|
|
@ -97,12 +97,6 @@ make install \
|
|
|
|
|
DB_LIBS=-ldb_cxx-5.3 \ |
|
|
|
|
MCPP_LIBS="-L$TMP/$NAME/cpp/third-party-packages/mcpp-2.7.2.14/lib$LIBDIRSUFFIX -l mcpp" |
|
|
|
|
|
|
|
|
|
cd ../python |
|
|
|
|
echo "Building Ice Python..." |
|
|
|
|
# We build for Python 2 only as Python 3.7 is not supported |
|
|
|
|
make -j $JOBS prefix=/usr |
|
|
|
|
make install prefix=/usr DESTDIR=$PKG |
|
|
|
|
|
|
|
|
|
# Strip binaries |
|
|
|
|
find $PKG | xargs file | grep "ELF \(32\|64\)-bit LSB" | cut -d : -f 1 | \ |
|
|
|
|
xargs strip --strip-unneeded 2> /dev/null |
|
|
|
|