diff options
author | Hunter Sezen <ovariegata@yahoo.com> | 2016-08-10 05:32:54 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-08-10 05:32:54 +0700 |
commit | 024cd43632b30e92bfce53cd13033daece99ec4d (patch) | |
tree | 1c0a4b807fb0b16cb916dba778a0ae5bdeababbd /games/dhewm3/dhewm3.SlackBuild | |
parent | 834f25d46a309861fc6d478686c45a9bca1afaae (diff) |
games/dhewm3: Updated for version 1.4.1.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/dhewm3/dhewm3.SlackBuild')
-rw-r--r-- | games/dhewm3/dhewm3.SlackBuild | 13 |
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 |