dosbox_x, revbump, rdef fixes (#12430)

This commit is contained in:
Schrijvers Luc
2025-05-23 18:56:26 +02:00
committed by GitHub
parent 580dc2010d
commit e1a18f0e70
2 changed files with 26 additions and 11 deletions

View File

@@ -2,18 +2,18 @@
resource app_flags B_SINGLE_LAUNCH | B_ARGV_ONLY;
resource app_version {
major = 2022,
middle = 12,
minor = 26,
major = @MAJOR@,
middle = @MIDDLE@,
minor = @MINOR@,
variety = B_APPV_FINAL,
internal = 0,
short_info = "DOSBox-X",
long_info = "A DOS-emulator"
short_info = "@APP_NAME@",
long_info = "@LONG_INFO@"
};
resource app_signature "application/x-vnd.dosbox-x";
resource app_signature "@APP_SIGNATURE@";
resource vector_icon {
$"6E6369662C0500020006023C43C6B9E5E23A85A73CEE414268F44A445962CE00"

View File

@@ -6,11 +6,11 @@ is much more flexible and provides more features."
HOMEPAGE="https://dosbox-x.com/"
COPYRIGHT="2002-2025 The DOSBox-X Team"
LICENSE="GNU GPL v2"
REVISION="1"
REVISION="2"
SOURCE_URI="https://github.com/joncampbell123/dosbox-x/archive/refs/tags/dosbox-x-v$portVersion.tar.gz"
SOURCE_DIR="dosbox-x-dosbox-x-v$portVersion"
CHECKSUM_SHA256="b29a2c9c38bfe1d1c1f2420d546b8c2456ae2ddce4c1f6b4d19f258841ce1581"
ADDITIONAL_FILES="dosbox.rdef"
ADDITIONAL_FILES="dosbox.rdef.in"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="?x86"
@@ -72,6 +72,21 @@ INSTALL()
mv /usr/share/dosbox-x $dataDir
addResourcesToBinaries $portDir/additional-files/dosbox.rdef $appsDir/DOSBox-X
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
local MINOR="`echo "$portVersion" | cut -d. -f3`"
local APP_NAME="DOSBox-X"
local LONG_INFO="$SUMMARY"
local APP_SIGNATURE="application/x-vnd.dosbox-x"
sed \
-e "s|@MAJOR@|$MAJOR|" \
-e "s|@MIDDLE@|$MIDDLE|" \
-e "s|@MINOR@|$MINOR|" \
-e "s|@LONG_INFO@|$LONG_INFO|" \
-e "s|@APP_NAME@|$APP_NAME|" \
-e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \
$portDir/additional-files/dosbox.rdef.in > dosbox.rdef
addResourcesToBinaries dosbox.rdef $appsDir/DOSBox-X
addAppDeskbarSymlink $appsDir/DOSBox-X
}