games/d2x-rebirth: Fix 32-bit build.

Signed-off-by: B. Watson <yalhcru@gmail.com>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
B. Watson 2022-03-21 11:56:27 -04:00 committed by Willy Sudiarto Raharjo
parent 8dce133869
commit 625f87d37a
No known key found for this signature in database
GPG Key ID: 3F617144D7238786
1 changed files with 12 additions and 5 deletions

View File

@ -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...