SUMMARY="Cabinet file creation tool"
DESCRIPTION="lcab is a command-line tool for creating Microsoft Cabinet files, \
also called CAB files or archives. lcab does not list nor extract MS CAB \
files. This can be done with separate tools such as cabextract.
The \".cab\" file extension is also used for another compressed archive format \
used by InstallShield but that format is unrelated to the MS CAB format."
HOMEPAGE="http://ohnopub.net/~ohnobinki/lcab/"
COPYRIGHT="2003-2007 Rien"
LICENSE="GNU GPL v2"
REVISION="2"
SOURCE_URI="http://mirror.ohnopub.net/mirror/lcab-$portVersion.tar.gz"
CHECKSUM_SHA256="065f2c1793b65f28471c0f71b7cf120a7064f28d1c44b07cabf49ec0e97f1fc8"
PATCHES="lcab-$portVersion.patch"

ARCHITECTURES="all"

PROVIDES="
	lcab = $portVersion
	cmd:lcab = $portVersion
	"
REQUIRES="
	haiku
	"

BUILD_REQUIRES="
	haiku_devel
	"
BUILD_PREREQUIRES="
	cmd:autom4te
	cmd:automake
	cmd:gcc
	cmd:ld
	cmd:make
	"

BUILD()
{
	aclocal
	automake -a -i
	runConfigure --omit-dirs "docDir dataRootDir" ./configure
	make $jobArgs
}

INSTALL()
{
	make install
}
