diff options
author | Gene Carlson <kvngncrlsn@gmail.com> | 2023-09-18 21:20:25 +0900 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-09-23 08:31:14 +0700 |
commit | 5953128575bad1c6aee541924e5081ce9e0898f0 (patch) | |
tree | 2fdbfa6e5e05e21d95e92374e4ed14e4f6606b92 /games/pioneer/pioneer.SlackBuild | |
parent | da54a60c5a13c1deb3d621247b7ef14d7c87cb78 (diff) |
games/pioneer: Updated for version 20230203; new maintainer.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/pioneer/pioneer.SlackBuild')
-rw-r--r-- | games/pioneer/pioneer.SlackBuild | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/games/pioneer/pioneer.SlackBuild b/games/pioneer/pioneer.SlackBuild index 83daea8051e81..1e08159da2fcf 100644 --- a/games/pioneer/pioneer.SlackBuild +++ b/games/pioneer/pioneer.SlackBuild @@ -3,6 +3,7 @@ # Slackware build script for pioneer # Copyright 2015-2019 Hunter Sezen California, USA +# Copyright 2023 K. Eugene Carlson Tsukuba, JP # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -25,8 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=pioneer -SRCNAM=$(printf %s $PRGNAM | tr [a-z] [A-Z]) -VERSION=${VERSION:-20191117} +VERSION=${VERSION:-20230203} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -53,16 +53,12 @@ OUTPUT=${OUTPUT:-/tmp} if [ "$ARCH" = "i586" ]; then SLKCFLAGS="-O2 -march=i586 -mtune=i686" - LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" - LIBDIRSUFFIX="" elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" - LIBDIRSUFFIX="64" else SLKCFLAGS="-O2" - LIBDIRSUFFIX="" fi set -eu @@ -98,9 +94,10 @@ pkg-config --exists glew && GLEW=ON # as cmake seems to search for them in order. pkg-config --exists lua5.2 && ! pkg-config --exists lua && LUA=ON -# Workaround 32-bit build failure -# https://github.com/pioneerspacesim/pioneer/issues/4691 -patch -p1 < $CWD/alignment.patch +# Fix 32-bit build (PR 5538) and system lua build (PR 5526). +patch -p0 < $CWD/fix-build.patch +# Post-release autopilot fixes (PR 5481, 5551). +patch -p1 < $CWD/ship-ai.patch # 20210214 bkw: prevent the build from writing to /root/, without # breaking ccache if it's in use. @@ -121,6 +118,7 @@ cd build -DCMAKE_BUILD_TYPE=$RELEASE .. make make install DESTDIR=$PKG + make -C . build-data install DESTDIR=$PKG cd .. if [ "$DEBUG" = 0 ]; then @@ -130,6 +128,7 @@ fi mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a licenses *.txt README.md $PKG/usr/doc/$PRGNAM-$VERSION +rm -f $PKG/usr/doc/$PRGNAM-$VERSION/{CMakeLists,SAVEBUMP}.txt cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |