Skip to content

Commit

Permalink
Update internal and recipe (#962)
Browse files Browse the repository at this point in the history
Add Freeciv icon
  • Loading branch information
stephanie-fu authored and waddlesplash committed Dec 27, 2016
1 parent eba3db2 commit 68dc52f
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 1 deletion.
Binary file not shown.
32 changes: 32 additions & 0 deletions games-strategy/freeciv/additional-files/freeciv.rdef.in
@@ -0,0 +1,32 @@
// Freeciv icon by Stephanie Fu

resource app_signature "application/x-vnd.Freeciv";

resource app_flags B_EXCLUSIVE_LAUNCH;

resource app_version {
major = @MAJOR@,
middle = @MIDDLE@,
minor = @MINOR@,
variety = B_APPV_DEVELOPMENT,
internal = @INTERNAL@,
short_info = "Freeciv",
long_info = "Freeciv, a civilization-like game.\nCopyright 2002-2015 The Freeciv Team"
};

resource file_types message;

resource vector_icon array {
$"6E6369660C0200040200FFFFFFF6CA9F3602000402008B9CCDC51D41AB020004"
$"020082C97DBF0A72030200040200FFFFFFCE59820303BC9D5103085A01030643"
$"00030A257603010000038B480003FF0000010000015C080A04244936493D3A2B"
$"3A0A04244C24513651364C0A044F3D4F434852484C0A062451244C322E562E56"
$"3449510A043C3D3F3D35253225080F3429382A3E294028422745274829442A42"
$"2B412C3F2F3E303C323A33383406138AAA8A8E0030283B413E39343C333F3041"
$"2E422C442B452A47482947284427C1E627C0EB27413B29383634080549575455"
$"5E405B3D543E0D0A0B0107000A080103301F2401178400040A0301002026180A"
$"0201002031270A0101002038180A000100201F270A040101201F240A05010120"
$"31240A060102201F240A0701022026150A0801061001178300040A090104201F"
$"240A0A010500"
};

20 changes: 19 additions & 1 deletion games-strategy/freeciv/freeciv-2.5.5.recipe
Expand Up @@ -12,9 +12,11 @@ you do not need to own Civilization to play Freeciv."
HOMEPAGE="http://www.freeciv.org"
COPYRIGHT="2002-2015 The Freeciv Team"
LICENSE="GNU GPL v2"
REVISION="2"
SOURCE_URI="http://downloads.sourceforge.net/project/freeciv/Freeciv%202.5/$portVersion/freeciv-$portVersion.tar.bz2"
CHECKSUM_SHA256="5622f2142637057f7e47b1eda764c4e131222fab4d5bb42cd59fbd58ba3db1d4"
REVISION="1"
ADDITIONAL_FILES="freeciv.rdef.in"

ARCHITECTURES="!x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86"

Expand Down Expand Up @@ -99,9 +101,25 @@ INSTALL()

mkdir -p $appsDir/Freeciv
mv $binDir/freeciv-sdl $appsDir/Freeciv/Freeciv

local MAJOR="`echo "$portVersion" | cut -d. -f1`"
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
local MINOR="`echo "$portVersion" | cut -d. -f3`"
local INTERNAL="0"
sed \
-e "s|@MAJOR@|$MAJOR|" \
-e "s|@MIDDLE@|$MIDDLE|" \
-e "s|@MINOR@|$MINOR|" \
-e "s|@INTERNAL@|$INTERNAL|" \
$portDir/additional-files/freeciv.rdef.in > freeciv.rdef

addResourcesToBinaries freeciv.rdef \
$appsDir/Freeciv/Freeciv

addAppDeskbarSymlink $appsDir/Freeciv/Freeciv
mv $prefix/share/* $dataRootDir
rm -rf $prefix/share

rm -rf $prefix/lib
}

0 comments on commit 68dc52f

Please sign in to comment.