SUMMARY="An archiving/compression application for Haiku"
DESCRIPTION="Archiver, an archiving/compression application that uses zip."
APP="Archiver"
HOMEPAGE="https://github.com/HaikuArchives/$APP"
COPYRIGHT="2002 Marcin 'Shard' Konicki"
LICENSE="MIT"
REVISION="1"
srcGitRev="3a9361a6214734293c65849b77b4f62d6242b749"
SOURCE_URI="https://github.com/HaikuArchives/$APP/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="ca224148993da6614baa53d2a4e02e96213cd01ec300487eaa6418bc24cb7c3a"
SOURCE_DIR="$APP-$srcGitRev"

ARCHITECTURES="!all x86_gcc2"

PROVIDES="
	archiver = $portVersion
	app:$APP = $portVersion
	"
REQUIRES="
	haiku
	cmd:zip
	"

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

BUILD()
{
	make -C Source OBJ_DIR=objects $jobArgs
}

INSTALL()
{
	install -d $appsDir
	install -t $appsDir Source/objects/$APP
	addAppDeskbarSymlink $appsDir/$APP

	install -d $addOnsDir/Tracker
	install -t $addOnsDir/Tracker Source/objects/$APP
}
