SUMMARY="Command-not-found program"
DESCRIPTION="Command-not-found hooks into the command_not_found_handle  \
to inform end users where to find an application if they don't have it. \
It can also check for typos (a feature of zsh)."
HOMEPAGE="https://github.com/jrabbit-cnf/"
SOURCE_URI="git+https://github.com/jrabbit/haiku-cnf.git#87cd5d0c212e377cffa5d3e2a00c143fe751c6fb"
ARCHITECTURES="x86 x86_gcc2"
REVISION="1"
DISABLE_SOURCE_PACKAGE="yes"

LICENSE="GNU GPL v2"
COPYRIGHT="2011 Jrabbit"

PROVIDES="
	command_not_found = $portVersion
	cmd:command_not_found = $portVersion
	"
REQUIRES="
	haiku
	cmd:python
	"
BUILD_REQUIRES="
	cmd:python
	"
POST_INSTALL_SCRIPTS="
	boot/post-install/install_cnf.py
	"

PATCHES="command_not_found-0.0.1.patchset"

INSTALL()
{
	mkdir -p $binDir
	install -m 0755 haiku_cnf.py $binDir/command_not_found

	mkdir -p $postInstallDir
	mv install_cnf.py $postInstallDir
}
