games/OpenXcom: New maintainer.

Signed-off-by: B. Watson <urchlay@slackware.uk>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
B. Watson 2024-09-06 16:02:26 -04:00 committed by Willy Sudiarto Raharjo
parent b560201886
commit 83d8be01d9
No known key found for this signature in database
GPG key ID: 3F617144D7238786
3 changed files with 21 additions and 24 deletions

View file

@ -3,7 +3,8 @@
# Slackware build script for OpenXcom # Slackware build script for OpenXcom
# Copyright 2014-2016 Dimitris Zlatanidis Orestiada, Greece # Copyright 2014-2016 Dimitris Zlatanidis Orestiada, Greece
# Copyright 2016-2020 Dominik Drobek <dominik.drobek (at) o2.pl> # Copyright 2016-2020 Dominik Drobek
# Copyright 2024 B. Watson <urchlay@slackware.uk>
# All rights reserved. # All rights reserved.
# #
# Redistribution and use of this script, with or without modification, is # Redistribution and use of this script, with or without modification, is
@ -23,6 +24,10 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# 20240906 bkw: BUILD=2
# - new maintainer.
# - move binary to /usr/games.
cd $(dirname $0) ; CWD=$(pwd) cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=OpenXcom PRGNAM=OpenXcom
@ -40,9 +45,6 @@ if [ -z "$ARCH" ]; then
esac esac
fi 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 if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0 exit 0
@ -74,16 +76,11 @@ cd $TMP
rm -rf $PRGNAM-$COMMIT rm -rf $PRGNAM-$COMMIT
tar xvf $CWD/$PRGNAM-$COMMIT.tar.gz tar xvf $CWD/$PRGNAM-$COMMIT.tar.gz
cd $PRGNAM-$COMMIT cd $PRGNAM-$COMMIT
chown -R root:root . find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} + -o \
find -L . \ \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} +
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
mkdir -p build mkdir -p build
( cd build
cd build
cmake \ cmake \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
@ -91,18 +88,16 @@ mkdir -p build
-DOPENXCOM_VERSION_STRING=".$(echo $COMMIT | cut -c -7)" \ -DOPENXCOM_VERSION_STRING=".$(echo $COMMIT | cut -c -7)" \
-DCMAKE_BUILD_TYPE=Release .. -DCMAKE_BUILD_TYPE=Release ..
make make
make install DESTDIR=$PKG make install/strip DESTDIR=$PKG
) cd ..
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ mv $PKG/usr/bin $PKG/usr/games
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true gzip -9 $PKG/usr/man/man*/*
find $PKG/usr/man -type f -exec gzip -9 {} \; PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done mkdir -p $PKGDOC
cp -a CHANGELOG.txt LICENSE.txt README.md $PKGDOC
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild
cp -a CHANGELOG.txt LICENSE.txt README.md $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/slack-desc > $PKG/install/slack-desc

View file

@ -6,5 +6,5 @@ MD5SUM="21989afb6389a3f7bd0f6a35f6d7dbcb"
DOWNLOAD_x86_64="" DOWNLOAD_x86_64=""
MD5SUM_x86_64="" MD5SUM_x86_64=""
REQUIRES="yaml-cpp SDL_gfx" REQUIRES="yaml-cpp SDL_gfx"
MAINTAINER="Dominik Drobek" MAINTAINER="B. Watson"
EMAIL="dominik.drobek (at) o2.pl" EMAIL="urchlay@slackware.uk"

View file

@ -1,3 +1,5 @@
OpenXcom (clone of the UFO: Enemy Unknown)
OpenXcom is an open-source remake of the popular OpenXcom is an open-source remake of the popular
UFO: Enemy Unknown (X-Com: UFO Defense in USA) videogame by UFO: Enemy Unknown (X-Com: UFO Defense in USA) videogame by
Microprose, licensed under the GPL and written in C++ / SDL. Microprose, licensed under the GPL and written in C++ / SDL.