SUMMARY="A Tracker add-on to find the package a file originates from"
DESCRIPTION="'Open Origin Package' is a Tracker add-on that finds the \
package(s) of any selected file(s) and opens it in the preferred application.
By default that is HaikuDepot where you can look at its description or the \
'Contents' tab to see what other files are part of that package and where they \
are."
HOMEPAGE="https://github.com/humdingerb/OpenOriginPackage"
COPYRIGHT="2019 Humdinger"
LICENSE="MIT"
REVISION="1"
SOURCE_URI="$HOMEPAGE/archive/v$portVersion.tar.gz"
CHECKSUM_SHA256="06581ad883952b4a507558ef49b125cdffa50f219e1a67fcd63ad82925da066d"
SOURCE_DIR="OpenOriginPackage-$portVersion"

ARCHITECTURES="all"

PROVIDES="
	openoriginpackage = $portVersion
	addon:OpenOriginPackage = $portVersion
	"
REQUIRES="
	haiku
	"

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

BUILD()
{
	make $jobArgs
	make bindcatalogs
}

INSTALL()
{
	mkdir -p $addOnsDir
	make install INSTALL_DIR=$addOnsDir/Tracker
}
