Hexalate: add recipe for 1.1.4 version

This commit is contained in:
Gerasim Troeglazov
2018-08-23 14:36:45 +10:00
parent 655ddb95ac
commit aa4ed676e3
2 changed files with 99 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
resource app_flags B_MULTIPLE_LAUNCH;
resource app_version {
major = @MAJOR@,
middle = @MIDDLE@,
minor = @MINOR@,
variety = B_APPV_FINAL,
internal = 0,
short_info = "Hexalate",
long_info = "@LONG_INFO@"
};
resource app_signature "@APP_SIGNATURE@";
resource vector_icon array {
$"6E6369660302030609B060DDBE2A813E5412B08E824A005749FF9E00FF00001E"
$"0101013B00FF005B0101017C0000FFA2010101C3A800FFE3010101FFFFAA0005"
$"0004007E0202044024B98024C5FF245C405CB9805CC5FF405CC5FF5CB9805C24"
$"4024C5FF24B98002044028BB4928C4362854BB3B54B86854BE0F40C047C436C0"
$"47BB49C0472CBB3B2CBE0F2CB868030A020100023FBACA0000000000003C9820"
$"4603884A89180A010100123FDF5C0000000000003FDD94BFB6924026B7011583"
$"00040A000100023FDF5C0000000000003FDD94BFB6924026B7"
};

View File

@@ -0,0 +1,74 @@
SUMMARY="A color matching game"
DESCRIPTION="The goal of the game is to rotate and position the circles so that \
each touching line matches in color. You rotate circles by right clicking, \
and you move circles by dragging them. The game stores the positions and \
rotations of the circles across runs."
HOMEPAGE="https://gottcode.org/hexalate/"
COPYRIGHT="2018 Graeme Gott"
LICENSE="GNU GPL v3"
REVISION="1"
SOURCE_URI="https://gottcode.org/hexalate/hexalate-$portVersion-src.tar.bz2"
SOURCE_DIR="hexalate-$portVersion"
CHECKSUM_SHA256="9dfdaaf802f792dbd539b7e87674f942a773970aa50c298cd395b5d21a9acca3"
ADDITIONAL_FILES="hexalate.rdef.in"
ARCHITECTURES="!x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
hexalate = $portVersion
app:Hexalate = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libGL$secondaryArchSuffix
lib:libQt5Core$secondaryArchSuffix
lib:libQt5Gui$secondaryArchSuffix
lib:libQt5Widgets$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libQt5Core$secondaryArchSuffix
devel:libQt5Gui$secondaryArchSuffix
devel:libQt5Widgets$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:make
cmd:qmake$secondaryArchSuffix >= 5
"
BUILD()
{
qmake
make $jobArgs
}
INSTALL()
{
mkdir -p $appsDir/Hexalate/translations
cp hexalate $appsDir/Hexalate/Hexalate
cp -Rf translations/*.qm $appsDir/Hexalate/translations
local APP_SIGNATURE="application/x-vnd.gottcode-hexalate"
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
local MINOR="`echo "$portVersion" | cut -d. -f3`"
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/hexalate.rdef.in > $sourceDir/hexalate.rdef
addResourcesToBinaries $sourceDir/hexalate.rdef \
$appsDir/Hexalate/Hexalate
mimeset -f $appsDir/Hexalate/Hexalate
addAppDeskbarSymlink $appsDir/Hexalate/Hexalate Hexalate
}