aboutsummaryrefslogtreecommitdiff
path: root/games/dhewm3/dhewm3.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'games/dhewm3/dhewm3.SlackBuild')
-rw-r--r--games/dhewm3/dhewm3.SlackBuild13
1 files changed, 7 insertions, 6 deletions
diff --git a/games/dhewm3/dhewm3.SlackBuild b/games/dhewm3/dhewm3.SlackBuild
index 480f7cf0ce94b..922448127d5f4 100644
--- a/games/dhewm3/dhewm3.SlackBuild
+++ b/games/dhewm3/dhewm3.SlackBuild
@@ -23,13 +23,13 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=dhewm3
-VERSION=${VERSION:-1.4.0}
+VERSION=${VERSION:-1.4.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@@ -40,8 +40,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@@ -81,14 +81,15 @@ cd neo/build
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr \
- -DCMAKE_INSTALL_BINDIR=/usr/games \
+ -DCMAKE_INSTALL_BINDIR=games \
+ -DCMAKE_INSTALL_DATAROOTDIR=share/games \
$base $core $d3xp $server \
-DCMAKE_BUILD_TYPE=Release ..
make
make install DESTDIR=$PKG
cd ../..
-mkdir -p $PKG/usr/share/$PRGNAM
+mkdir -p $PKG/usr/share/games/$PRGNAM
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