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-2022 Andi Machovec"
LICENSE="MIT"
REVISION="1"
SOURCE_URI="https://github.com/andimachovec/Peggy/archive/$portVersion.tar.gz"
CHECKSUM_SHA256="2e6d034db2ec46d08e5ce9282fd2cd2b103a7912ca621343b8687dd953526b60"
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
}
