SUMMARY="Thomson disk image manipulator"
DESCRIPTION="Tools for listing and editing Thomson computer disk image files \
in SAP format."
HOMEPAGE="https://github.com/nils-eilers/sap2"
COPYRIGHT="1998 Alexandre Pukall
	2000-2003 Eric Botcazou"
LICENSE="GNU GPL v2"
REVISION="2"
srcGitRev="e3a77a80c097ae260950ffa3b862f386e006f037"
SOURCE_URI="https://github.com/nils-eilers/sap2/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="272c9d0ee120e805e44e5ef06da9ce3576c78f2de21bc60302bf1ee822f330dc"
SOURCE_FILENAME="saptools-$srcGitRev.tar.gz"
SOURCE_DIR="sap2-$srcGitRev"
PATCHES="saptools-$portVersion.patchset"

ARCHITECTURES="?all x86_gcc2"

PROVIDES="
	saptools = $portVersion
	cmd:sapfs = 0.9.6
	"
REQUIRES="
	haiku
	lib:libintl
	"

BUILD_REQUIRES="
	haiku_devel
	devel:libintl
	"
BUILD_PREREQUIRES="
	cmd:gcc
	cmd:make
	"

BUILD()
{
	make $jobArgs sapfs
}

INSTALL()
{
	mkdir -p $binDir
	cp sapfs $binDir
}
