From aaa44336964e66a0608f6c7a260d587cc3fd2f0a Mon Sep 17 00:00:00 2001 From: Gerasim Troeglazov <3dEyes@gmail.com> Date: Thu, 23 Aug 2018 13:10:52 +1000 Subject: [PATCH] Peg-E:add recipe for 1.2.6 version --- .../peg-e/additional-files/peg_e.rdef.in | 26 +++++++ games-board/peg-e/peg_e-1.2.6.recipe | 74 +++++++++++++++++++ 2 files changed, 100 insertions(+) create mode 100644 games-board/peg-e/additional-files/peg_e.rdef.in create mode 100644 games-board/peg-e/peg_e-1.2.6.recipe diff --git a/games-board/peg-e/additional-files/peg_e.rdef.in b/games-board/peg-e/additional-files/peg_e.rdef.in new file mode 100644 index 000000000..9436c14f1 --- /dev/null +++ b/games-board/peg-e/additional-files/peg_e.rdef.in @@ -0,0 +1,26 @@ +resource app_flags B_MULTIPLE_LAUNCH; + +resource app_version { + major = @MAJOR@, + middle = @MIDDLE@, + minor = @MINOR@, + + variety = B_APPV_FINAL, + internal = 0, + + short_info = "Peg-E", + long_info = "@LONG_INFO@" +}; + +resource app_signature "@APP_SIGNATURE@"; + +resource vector_icon array { + $"6E63696604020106023F60000000000000003D800044FFFF474000000055FFFF" + $"002A7F0200120236FEC33D50BFBE174337C71F4A281A45640000FFFFFFFF0005" + $"0004007E0202044024B98024C5FF245C405CB9805CC5FF405CC5FF5CB9805C24" + $"4024C5FF24B98002044028BB4928C4362854BB3B54B86854BE0F40C047C436C0" + $"47BB49C0472CBB3B2CBE0F2CB868040A030100024001F70000000000003C9820" + $"43C4FD4A89180A020100123FDF5C0000000000003FDD94BFB6924026B7011583" + $"00040A000100023FDF5C0000000000003FDD94BFB6924026B70A010101023FDF" + $"5C0000000000003FDD94BFB6924026B7" +}; diff --git a/games-board/peg-e/peg_e-1.2.6.recipe b/games-board/peg-e/peg_e-1.2.6.recipe new file mode 100644 index 000000000..d24dad075 --- /dev/null +++ b/games-board/peg-e/peg_e-1.2.6.recipe @@ -0,0 +1,74 @@ +SUMMARY="A peg solitaire game" +DESCRIPTION="Peg-E is a peg solitaire game in which you jump over pieces in order \ +to remove them from the board, ultimately trying to eliminate all but one. The \ +boards are randomly generated, with 100 levels of difficulty. The game auto-saves, \ +and has undo-redo capability. Pieces can move horizontally, vertically, and diagonally." +HOMEPAGE="https://gottcode.org/peg-e/" +COPYRIGHT="2018 Graeme Gott" +LICENSE="GNU GPL v3" +REVISION="1" +SOURCE_URI="https://gottcode.org/peg-e/peg-e-$portVersion-src.tar.bz2" +SOURCE_DIR="peg-e-$portVersion" +CHECKSUM_SHA256="b7a644397a6e8fd24c5df72a8c5950af8de035c9fafc712fea5eae87eea15d81" +ADDITIONAL_FILES="peg_e.rdef.in" + +ARCHITECTURES="!x86_gcc2 x86 x86_64" +SECONDARY_ARCHITECTURES="x86" + +PROVIDES=" + peg_e = $portVersion + app:PegE = $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/Peg-E/translations + cp peg-e $appsDir/Peg-E/Peg-E + cp -Rf translations/*.qm $appsDir/Peg-E/translations + + local APP_SIGNATURE="application/x-vnd.gottcode-peg-e" + 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/peg_e.rdef.in > $sourceDir/peg_e.rdef + + addResourcesToBinaries $sourceDir/peg_e.rdef \ + $appsDir/Peg-E/Peg-E + + mimeset -f $appsDir/Peg-E/Peg-E + + addAppDeskbarSymlink $appsDir/Peg-E/Peg-E Peg-E +}