SUMMARY="Decrypts your PowerPacker encrypted files"
DESCRIPTION="
Decrypts PowerPacker encrypted files using Stuart Caie's ppcrack 0.1 \
decrypting routines."
HOMEPAGE="https://github.com/HaikuArchives/PPViewer"
COPYRIGHT="2002 Maurice Michalski"
LICENSE="MIT"
REVISION="2"
srcGitRev="bd43e4a8d9139c35ba34bd9791f293e4421ca082"
SOURCE_URI="https://github.com/HaikuArchives/PPViewer/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="f6f250a9b764088b33f9e11187221bad3b5449ffd6004c312536f340576eba98"
SOURCE_DIR="PPViewer-$srcGitRev"

ARCHITECTURES="all"

PROVIDES="
	ppviewer = $portVersion
	app:PPViewer = $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
	mv objects/ppviewer $appsDir/PPViewer
	addAppDeskbarSymlink $appsDir/PPViewer
}
