mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
PrBoom-plus: add icon and menu entry (#11321)
Co-authored-by: Joachim Mairböck <j.mairboeck@gmail.com>
This commit is contained in:
36
games-fps/prboom-plus/additional-files/prboom_plus.rdef.in
Normal file
36
games-fps/prboom-plus/additional-files/prboom_plus.rdef.in
Normal file
@@ -0,0 +1,36 @@
|
||||
resource app_flags B_SINGLE_LAUNCH | B_ARGV_ONLY;
|
||||
|
||||
resource app_version {
|
||||
major = @MAJOR@,
|
||||
middle = @MIDDLE@,
|
||||
minor = @MINOR@,
|
||||
|
||||
variety = B_APPV_FINAL,
|
||||
internal = 0,
|
||||
|
||||
short_info = "PrBoom+",
|
||||
long_info = "A Doom souce port derived by PrBoom"
|
||||
};
|
||||
|
||||
resource app_signature "application/x-vnd.prboom-plus";
|
||||
|
||||
resource vector_icon {
|
||||
$"6E63696603020106020000003E0000BE00000000004A00004A000000AA0004FF"
|
||||
$"390001050002010602000000BB00003B00000000004A00004A000000D5A500FF"
|
||||
$"FFF00004021221452145B4B9412B39B60E3DB6DA35272DB65131B71D2D312DB8"
|
||||
$"722D31293121312535253D2D39294129492145254BB4764F294DB5854F2D4F35"
|
||||
$"4F31C796355D35C97135CA3D3B5547C92E41C92EC5755D5DCA3DC862C7965941"
|
||||
$"51C3DD55BE05C7D9315BBBE6C92E3157314F3153B8B54F294FB7A64F29C4A929"
|
||||
$"4729C39AB585C2452145B476C2022145021221452145B4B9412B39B60E3DB6DA"
|
||||
$"35272DB65131B71D2D312DB8722D31293121312535253D2D3929412949214525"
|
||||
$"4BB4764F294DB5854F2D4F354F31C796355D35C97135CA3D3B5547C92E41C92E"
|
||||
$"C5755D5DCA3DC862C796594151C3DD55BE05C7D9315BBBE6C92E3157314F3153"
|
||||
$"B8B54F294FB7A64F29C4A9294729C39AB585C2452145B476C2022145020D3B35"
|
||||
$"3B353B373B3B3B39393B353B373B35BF16354535C06A37453B4539453B473B4B"
|
||||
$"3B49BF164B454BC06A4B45494545454747454B4549454BC06A4B3B4BBF16493B"
|
||||
$"453B473B453945354537C06A353B35BF16353B35020D3B353B353B373B3B3B39"
|
||||
$"393B353B373B35BF16354535C06A37453B4539453B473B4B3B49BF164B454BC0"
|
||||
$"6A4B45494545454747454B4549454BC06A4B3B4BBF16493B453B473B45394535"
|
||||
$"4537C06A353B35BF16353B35040A000100000A0101011001178200040A020102"
|
||||
$"000A010103100117820004"
|
||||
};
|
||||
@@ -12,11 +12,12 @@ Example: 'prboom-plus -iwad ~/config/non-packaged/data/doom/doom.wad'"
|
||||
HOMEPAGE="https://github.com/coelckers/prboom-plus"
|
||||
COPYRIGHT="2016-2023 Andrey Budko et al."
|
||||
LICENSE="GNU GPL v2"
|
||||
REVISION="1"
|
||||
REVISION="2"
|
||||
SOURCE_URI="https://github.com/coelckers/prboom-plus/archive/v$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="4b647b4b14c3fac00711e6bf19f996bbfe37754a3b9bb5be6791f0c3fd993438"
|
||||
SOURCE_DIR="prboom-plus-$portVersion"
|
||||
PATCHES="prboom_plus-$portVersion.patchset"
|
||||
ADDITIONAL_FILES="prboom_plus.rdef.in"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
@@ -87,4 +88,17 @@ INSTALL()
|
||||
{
|
||||
cd build
|
||||
make install
|
||||
|
||||
# Generate the rdef
|
||||
local MAJOR="`echo "$portVersion" | cut -b1`"
|
||||
local MIDDLE="`echo "$portVersion" | cut -b3`"
|
||||
local MINOR="`echo "$portVersion" | cut -b5,6`"
|
||||
sed \
|
||||
-e "s|@MAJOR@|$MAJOR|" \
|
||||
-e "s|@MIDDLE@|$MIDDLE|" \
|
||||
-e "s|@MINOR@|$MINOR|" \
|
||||
$portDir/additional-files/prboom_plus.rdef.in > prboom_plus.rdef
|
||||
|
||||
addResourcesToBinaries prboom_plus.rdef $prefix/bin/prboom-plus
|
||||
addAppDeskbarSymlink $prefix/bin/prboom-plus "PrBoom+"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user