New recipe: Peggy (#6502)

This commit is contained in:
Andi Machovec
2021-12-29 16:50:04 +01:00
committed by GitHub
parent 94f3885c9a
commit 69a9c735b1

View File

@@ -0,0 +1,43 @@
SUMMARY="A board game inspired by Mastermind(tm)"
DESCRIPTION="In this game you have to crack a color code in 9 attempts \
by getting feedback about the correctness of the color pegs and their positions."
HOMEPAGE="https://github.com/andimachovec/Peggy"
COPYRIGHT="2021 Andi Machovec"
LICENSE="MIT"
REVISION="1"
SOURCE_URI="https://github.com/andimachovec/Peggy/archive/$portVersion.tar.gz"
CHECKSUM_SHA256="edbaa164c14c2ce6a3aaf2efcf8696fd7d1ea2e7f97e170d8562b4a1c50908e6"
SOURCE_DIR="Peggy-$portVersion"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
peggy$secondaryArchSuffix = $portVersion
app:Peggy = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
makefile_engine
cmd:g++$secondaryArchSuffix
cmd:make
"
BUILD()
{
make $jobArgs OBJ_DIR=objects
make bindcatalogs OBJ_DIR=objects
}
INSTALL()
{
mkdir -p $appsDir
cp -af objects/Peggy $appsDir
addAppDeskbarSymlink $appsDir/Peggy
}