SUMMARY="Uncompress rar files"
DESCRIPTION="
Unrar decompresses rar files. It is a powerful archive manager that can backup \
your data and reduce the size of email attachments. Unrar can decompress the \
following file formats:
- RAR
- ZIP
- CAB
- ARJ
- JZH
- TAR
- GZ and TAR.GZ
- BZ2 and TAR.BZ2
- ACE
- UUE
- JAR (Java Archive)
- ISO
- 7Z
- XZ
- Z (Unix Compress)
"
HOMEPAGE="http://www.rarlab.com/"
SOURCE_URI="http://www.rarlab.com/rar/unrarsrc-$portVersion.tar.gz"
CHECKSUM_SHA256="2224ced8288553392abe94e410e29d2570bfdfea22af51125d3984548a5034cb"
REVISION="1"
ARCHITECTURES="x86_gcc2 x86 x86_64"

PATCHES="unrar-$portVersion.patchset"

PROVIDES="
	unrar = $portVersion
	cmd:unrar = $portVersion
	"

REQUIRES="
	haiku
	"
BUILD_REQUIRES="
	haiku_devel
	cmd:make
	cmd:g++
	"

SOURCE_DIR="unrar"
BUILD()
{
	make DESTDIR=$prefix
}

INSTALL()
{
	make DESTDIR=$prefix install
}

LICENSE="UnRAR"
COPYRIGHT="Alexander Roshal"
