SUMMARY="A phone book manager"
DESCRIPTION="BePhoneBook is a colorful phonebook made to help you stay \
organized with your family's or friends' phone numbers."
HOMEPAGE="https://github.com/HaikuArchives/BePhoneBook"
COPYRIGHT="1999 Michael Melloff
	1999 Fabien Fulhaber"
LICENSE="libsanta
	Unknown"
REVISION="1"
srcGitRev="666d1cf3ea715f20455576664823c8ff85b4eec0"
SOURCE_URI="https://github.com/HaikuArchives/bephonebook/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="6f72547575dfeb5850aaba6d714d167bd046ba2858a5fb818688d67a39dd1995"
SOURCE_FILENAME="BePhoneBook-$portVersion-$srcGitRev.tar.gz"
SOURCE_DIR="BePhoneBook-$srcGitRev"

ARCHITECTURES="all"

PROVIDES="
	bephonebook = $portVersion
	app:BePhoneBook = $portVersion
	"
REQUIRES="
	haiku
	"

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

BUILD()
{
	make $jobArgs OBJ_DIR=objects
}

INSTALL()
{
	mkdir -p $appsDir
	mkdir -p $appsDir/BePhoneBook
   	cp objects/BePhoneBook $appsDir/BePhoneBook
   	cp -r Skins $appsDir/BePhoneBook
   	cp -r Doc $appsDir/BePhoneBook
	cp Source/about.jpg $appsDir/BePhoneBook
	addAppDeskbarSymlink $appsDir/BePhoneBook/BePhoneBook
}
