aboutsummaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
Diffstat (limited to 'games')
-rw-r--r--games/d1x-rebirth/d1x-rebirth.SlackBuild26
-rw-r--r--games/d1x-rebirth/d1x-rebirth.info6
2 files changed, 14 insertions, 18 deletions
diff --git a/games/d1x-rebirth/d1x-rebirth.SlackBuild b/games/d1x-rebirth/d1x-rebirth.SlackBuild
index ab164d91ddf00..597fa866b8204 100644
--- a/games/d1x-rebirth/d1x-rebirth.SlackBuild
+++ b/games/d1x-rebirth/d1x-rebirth.SlackBuild
@@ -26,7 +26,8 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=d1x-rebirth
-VERSION=${VERSION:-0.58.1}
+SRCNAM=dxx-rebirth
+VERSION=${VERSION:-20220130_7258b7f}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -70,9 +71,9 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf ${PRGNAM}_v${VERSION}-src
-tar xvf $CWD/${PRGNAM}_v${VERSION}-src.tar.gz
-cd ${PRGNAM}_v${VERSION}-src
+rm -rf $SRCNAM-$VERSION
+tar xvf $CWD/$SRCNAM-$VERSION.tar.xz
+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 \) \
@@ -83,19 +84,14 @@ find -L . \
# 'sharepath' is for the game-content data files, they can
# also perhaps more conveniently go in ~/.d1x-rebirth...
scons CXXFLAGS="$SLKCFLAGS" \
- CFLAGS="$SLKCFLAGS" \
prefix=/usr \
- sharepath=/usr/share/games/d1x-rebirth
+ sharepath=/usr/share/$PRGNAM \
+ d1x=1
# DESTDIR does not work so we do it manually:
-mkdir -p $PKG/usr/bin
-mv $PRGNAM $PKG/usr/bin
-
-# It is a commandline program but perhaps somebody will use these:
-mkdir -p $PKG/usr/share/pixmaps
-mv d1x-rebirth.xpm $PKG/usr/share/pixmaps
-mkdir -p $PKG/usr/share/applications/
-mv d1x-rebirth.desktop $PKG/usr/share/applications/
+install -D -m 0755 build/$PRGNAM/$PRGNAM $PKG/usr/bin/$PRGNAM
+install -D -m 0644 $PRGNAM/$PRGNAM.xpm $PKG/usr/share/pixmaps/$PRGNAM.xpm
+install -D -m 0644 $PRGNAM/$PRGNAM.desktop $PKG/usr/share/applications/$PRGNAM.desktop
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
@@ -103,7 +99,7 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
# d1x.ini is a handy list of commandline options...
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
- CHANGELOG.txt COPYING.txt INSTALL.txt README.txt RELEASE-NOTES.txt d1x.ini \
+ d1x-rebirth/{CHANGELOG.txt,RELEASE-NOTES.txt,d1x.ini} README.md COPYING* GPL* \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
diff --git a/games/d1x-rebirth/d1x-rebirth.info b/games/d1x-rebirth/d1x-rebirth.info
index 86cc4465ae5f7..f20bb59a15636 100644
--- a/games/d1x-rebirth/d1x-rebirth.info
+++ b/games/d1x-rebirth/d1x-rebirth.info
@@ -1,8 +1,8 @@
PRGNAM="d1x-rebirth"
-VERSION="0.58.1"
+VERSION="20220130_7258b7f"
HOMEPAGE="https://www.dxx-rebirth.com/"
-DOWNLOAD="https://www.dxx-rebirth.com/download/dxx/rebirth/d1x-rebirth_v0.58.1-src.tar.gz"
-MD5SUM="8f43e66191fdedd0c7ff9278719accf1"
+DOWNLOAD="https://ponce.cc/slackware/sources/repo/dxx-rebirth-20220130_7258b7f.tar.xz"
+MD5SUM="0aacba8e78a9a5cb5e52a5802604b13f"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="physfs"