aboutsummaryrefslogtreecommitdiff
path: root/games/d2x-rebirth
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2022-03-21 11:56:27 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-03-26 01:20:09 +0700
commit625f87d37aebd1fd1963bbb7a261a17d2cb262d4 (patch)
treea9c3f9d469edd29ffc853a8896fe23a7310b5fb7 /games/d2x-rebirth
parent8dce1338698e73f3356344192f59190919ae4ed8 (diff)
games/d2x-rebirth: Fix 32-bit build.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/d2x-rebirth')
-rw-r--r--games/d2x-rebirth/d2x-rebirth.SlackBuild17
1 files changed, 12 insertions, 5 deletions
diff --git a/games/d2x-rebirth/d2x-rebirth.SlackBuild b/games/d2x-rebirth/d2x-rebirth.SlackBuild
index cc460c2ab6698..0cafd4fd74ce1 100644
--- a/games/d2x-rebirth/d2x-rebirth.SlackBuild
+++ b/games/d2x-rebirth/d2x-rebirth.SlackBuild
@@ -23,6 +23,10 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 20220321 bkw: Modified by SlackBuilds.org: fix 32-bit build.
+# TODO: the executable needs to go in /usr/games, and the .desktop
+# needs absolute paths to the icon and executable.
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=d2x-rebirth
@@ -40,9 +44,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -77,9 +78,15 @@ cd $SRCNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
- -exec chmod 755 {} \; -o \
+ -exec chmod 755 {} \+ -o \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
- -exec chmod 644 {} \;
+ -exec chmod 644 {} \+
+
+# 20220321 bkw: I hate scons, and I hate people who use -Werror and
+# don't give a sane way to disable it. I especially hate them if they
+# write code that triggers warnings... 32-bit builds were failing
+# because of this.
+sed -i -e "s,'-W','-Wno-'," -e "s,'-Werror=','-Wno-error='," SConstruct
# 'sharepath' is for the game-content data files, they can
# also perhaps more conveniently go in ~/.d2x-rebirth...