0 A.D.: add icon

This commit is contained in:
Gerasim Troeglazov
2020-05-10 00:24:25 +10:00
parent c941f5268b
commit a1eae857f4
2 changed files with 46 additions and 1 deletions

View File

@@ -3,11 +3,12 @@ DESCRIPTION="A free, open-source, Real-Time Strategy (RTS) game."
HOMEPAGE="https://play0ad.com/"
COPYRIGHT="Wildfire Games"
LICENSE="0ADLicense"
REVISION="3"
REVISION="4"
SOURCE_URI="https://releases.wildfiregames.com/0ad-${portVersion/\~/-}-unix-build.tar.xz"
CHECKSUM_SHA256="01bff7641ee08cac896c54d518d7e4b01752513105558f212e3199d747512a37"
SOURCE_DIR="0ad-${portVersion/\~/-}"
PATCHES="0ad-$portVersion.patchset"
ADDITIONAL_FILES="0ad.rdef.in"
ARCHITECTURES="!x86_gcc2 ?x86 x86_64"
SECONDARY_ARCHITECTURES="x86"
@@ -100,6 +101,21 @@ INSTALL()
cp -R binaries/data/* $dataDir/0ad
cp -R binaries/system/*.so binaries/system/pyrogenesis $appsDir/0ad
local APP_SIGNATURE="application/x-vnd.pyrogenesis-0ad"
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
local MINOR="`echo "$portVersion" | cut -d. -f3 | cut -db -f1`"
local LONG_INFO="$SUMMARY"
sed \
-e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \
-e "s|@MAJOR@|$MAJOR|" \
-e "s|@MIDDLE@|$MIDDLE|" \
-e "s|@MINOR@|$MINOR|" \
-e "s|@LONG_INFO@|$LONG_INFO|" \
$portDir/additional-files/0ad.rdef.in > $sourceDir/build/0ad.rdef
addResourcesToBinaries $sourceDir/build/0ad.rdef $appsDir/0ad/pyrogenesis
addAppDeskbarSymlink $appsDir/0ad/pyrogenesis "0 A.D."
}

View File

@@ -0,0 +1,29 @@
resource app_flags B_SINGLE_LAUNCH;
resource app_version {
major = @MAJOR@,
middle = @MIDDLE@,
minor = @MINOR@,
variety = B_APPV_FINAL,
internal = 0,
short_info = "0 A.D.",
long_info = "@LONG_INFO@"
};
resource app_signature "@APP_SIGNATURE@";
resource vector_icon array {
$"6E6369660405000200060239D7493DEAD9BE00D139EDA14B298E48117A00FDE8"
$"C0FFB75A0E040164020006083D02373CD1B0BC38E03C5F204A6FC24812D600D7"
$"AD051CFDC9003ECBA4055DF4BF0086B88C04ACF2B40DD5A57708FCC080050502"
$"0A4023BF952340234E27C2B5B5765628C9E9B4CCC9C3B4CCC9E2B915C9E2C1A7"
$"C9EEBD5EC9CFC1A75550594C4D58405DC002CB4C40CB362B503458B5B2C4A0B5"
$"9CC1A7B5AFC1A7B591BD5EB596B4CCB59CB915B5C0B4CC32272A28BCB8B57806"
$"06EE0A4460585C5061CABECA025F545F50CD1DC659C912C573444E4060020440"
$"30C34530BC3A30304030BC3A30C3454050BC3A50C34550504050C34550BC3A08"
$"0230405040080240504030050A02010102400000000000000000408000C00000"
$"C800000A0001001001178522040A010100000A000302030430201E0117870004"
$"0A030302030430201E0117830004"
};