SUMMARY="Free image browser and viewer"
DESCRIPTION="Peek is a free image browser and viewer with the aim of of \
being small, fast, efficient, very functional and intuitive."
HOMEPAGE="https://github.com/HaikuArchives/Peek"
COPYRIGHT="2001 Durand John Miller"
LICENSE="BSD (3-clause)"
REVISION="1"
srcGitRev="0ec2275529021acc1192f98628029747c1580df7"
SOURCE_URI="https://github.com/HaikuArchives/Peek/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="34003ff1124c3a2ea6e64d30afd6d60763e4cc846c54f64d5873ca43400983e0"
SOURCE_DIR="Peek-$srcGitRev"

ARCHITECTURES="x86_gcc2"

PROVIDES="
	peek = $portVersion
	app:Peek = $portVersion
	"
REQUIRES="
	haiku
	"

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

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

INSTALL()
{
	mkdir -p $appsDir/Peek
	cp source/objects/Peek $appsDir/Peek/Peek
	cp -r languages $appsDir/Peek/
	addAppDeskbarSymlink $appsDir/Peek/Peek
}
