summaryrefslogtreecommitdiffstats
path: root/system/dosbox-x
diff options
context:
space:
mode:
Diffstat (limited to 'system/dosbox-x')
-rw-r--r--system/dosbox-x/doinst.sh9
-rw-r--r--system/dosbox-x/dosbox-x.SlackBuild39
-rw-r--r--system/dosbox-x/dosbox-x.info12
3 files changed, 43 insertions, 17 deletions
diff --git a/system/dosbox-x/doinst.sh b/system/dosbox-x/doinst.sh
new file mode 100644
index 0000000000..65c7e2eeb9
--- /dev/null
+++ b/system/dosbox-x/doinst.sh
@@ -0,0 +1,9 @@
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
+fi
+
+if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
+ if [ -x /usr/bin/gtk-update-icon-cache ]; then
+ /usr/bin/gtk-update-icon-cache -f usr/share/icons/hicolor >/dev/null 2>&1
+ fi
+fi
diff --git a/system/dosbox-x/dosbox-x.SlackBuild b/system/dosbox-x/dosbox-x.SlackBuild
index 5a04069ac3..1c18fbb18f 100644
--- a/system/dosbox-x/dosbox-x.SlackBuild
+++ b/system/dosbox-x/dosbox-x.SlackBuild
@@ -1,8 +1,9 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for dosbox-x
# Copyright 2019-2020 Leonardo Citrolo, Italy
+# Copyright 2023 Yth | Pont-en-Royans, France | yth@ythogtha.org
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -22,10 +23,13 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=dosbox-x
-VERSION=${VERSION:-0.83.2}
+VERSION=${VERSION:-2024.03.01}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -35,7 +39,14 @@ if [ -z "$ARCH" ]; then
esac
fi
-CWD=$(pwd)
+# 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
+fi
+
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
@@ -49,6 +60,9 @@ elif [ "$ARCH" = "i686" ]; then
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
+elif [ "$ARCH" = "aarch64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
else
SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
@@ -63,7 +77,7 @@ cd $TMP
# in the sources tarball filename and/or main dirname
rm -rf $PRGNAM-v$VERSION $PRGNAM-$PRGNAM-v$VERSION
tar xvf $CWD/$PRGNAM-v$VERSION.tar.gz || tar xvf $CWD/$PRGNAM-$PRGNAM-v$VERSION.tar.gz
-cd $PRGNAM-v$VERSION || cd $PRGNAM-$PRGNAM-v$VERSION
+cd $PRGNAM-v$VERSION 2>/dev/null || cd $PRGNAM-$PRGNAM-v$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -71,32 +85,35 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-./autogen.sh
-
+# Don't force make -j3
+sed -i 's#make -j3#make#' build-sdl2
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
-./configure \
+./build-sdl2 \
--prefix=/usr \
+ --mandir=/usr/man \
--build=$ARCH-slackware-linux \
--enable-sdl2 \
--enable-d3d9 \
--enable-d3d-shaders
-make
make install DESTDIR=$PKG
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
+find $PKG/usr/man -type f -exec gzip -9 {} \;
+for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS CHANGELOG CODE_OF_CONDUCT.md CONTRIBUTING.md COPYING \
- "DOS GAMES THAT NEED A HIGHER MCB BASE SEGMENT.TXT" INSTALL NEWS \
- README* THANKS \
+ CREDITS.md INSTALL.md NEWS README* THANKS \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/system/dosbox-x/dosbox-x.info b/system/dosbox-x/dosbox-x.info
index fb46598a55..c5a83b561c 100644
--- a/system/dosbox-x/dosbox-x.info
+++ b/system/dosbox-x/dosbox-x.info
@@ -1,10 +1,10 @@
PRGNAM="dosbox-x"
-VERSION="0.83.2"
+VERSION="2024.03.01"
HOMEPAGE="http://dosbox-x.com/"
-DOWNLOAD="https://github.com/joncampbell123/dosbox-x/archive/dosbox-x-v0.83.2.tar.gz"
-MD5SUM="3da8a408deaf9518da1423dff8021f53"
+DOWNLOAD="https://github.com/joncampbell123/dosbox-x/archive/dosbox-x-v2024.03.01/dosbox-x-dosbox-x-v2024.03.01.tar.gz"
+MD5SUM="82f68d294e739c2616130b15a65f582c"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="SDL2"
-MAINTAINER="Leo C."
-EMAIL="leoc@gmx.com"
+REQUIRES=""
+MAINTAINER="Yth - Arnaud"
+EMAIL="yth@ythogtha.org"