SUMMARY="Simple, powerful contact manager for Haiku"
DESCRIPTION="Mr. Peeps! is an app for managing People files that has more \
features than other contact managers. Highlights:
 * Autosave: no more clicking File|Save or typing Alt-S. Edit it and it's \
saved that way.
 * Fast keyboard navigation:
   * Use Tab and Shift-Tab to jump between data fields
   * Alt-Up and Alt-Down go to the next/previous person, no matter what
   * When using the People list, use the cursor keys or jump to a person \
using a letter key
   * Use the Alt key plus the 1-5 keys to change tabs, i.e. Alt+2 is the \
Personal tab
 * Multiple groups - separate group names with a comma
 * Native Language support - Mr. Peeps! can now show itself in your own \
language and you can change languages quickly, if you so choose.
 * More Data: handles more types of data than even People v2 and \
DeeperPeople, such as birthdays, anniversaries, and other personal data."
HOMEPAGE="https://github.com/HaikuArchives/MrPeeps"
COPYRIGHT="2003 Jon Yoder (DarkWyrm)"
LICENSE="MIT"
REVISION="3"
srcGitRev="8866b4fe8f073d634dcd64ef92cf97027dd324a0"
SOURCE_URI="https://github.com/HaikuArchives/MrPeeps/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="7363c74956feaf5440d8c5627318ec43dda8253fa80e6bb78d474972c996ac2c"
SOURCE_DIR="MrPeeps-$srcGitRev"

ARCHITECTURES="all ?x86"

PROVIDES="
	mrpeeps = $portVersion
	app:MrPeeps = $portVersion
	"
REQUIRES="
	haiku
	"

BUILD_REQUIRES="
	haiku_devel
	"
BUILD_PREREQUIRES="
	makefile_engine
	cmd:g++
	cmd:make
	"

BUILD()
{
	cd src
	make $jobArgs OBJ_DIR=objects
}

INSTALL()
{
	mkdir -p $appsDir
	cd src
	cp -f objects/MrPeeps $appsDir
	addAppDeskbarSymlink $appsDir/MrPeeps "Mr. Peeps!"
}
