unrar: bump version.

This commit is contained in:
Jerome Duval
2017-08-26 14:23:02 +02:00
parent 7f6c230845
commit df27d5a2e5
2 changed files with 1 additions and 1 deletions

View File

@@ -0,0 +1,67 @@
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/rar_add.htm"
COPYRIGHT="1993-2016 Alexander Roshal"
LICENSE="UnRAR"
REVISION="1"
SOURCE_URI="http://www.rarlab.com/rar/unrarsrc-$portVersion.tar.gz"
CHECKSUM_SHA256="9b66e4353a9944bc140eb2a919ff99482dd548f858f5e296d809e8f7cdb2fcf4"
SOURCE_DIR="unrar"
PATCHES="unrar-$portVersion.patchset"
ADDITIONAL_FILES="unrar.rdef"
ARCHITECTURES="x86_gcc2 x86 x86_64"
PROVIDES="
unrar = $portVersion
cmd:unrar = $portVersion
"
REQUIRES="
haiku
"
BUILD_REQUIRES="
haiku_devel
"
BUILD_PREREQUIRES="
cmd:cut
cmd:g++
cmd:make
cmd:sed
"
BUILD()
{
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
local MINOR="`echo "$portVersion" | cut -d. -f3`"
sed \
-e "s|@MAJOR@|$MAJOR|" \
-e "s|@MIDDLE@|$MIDDLE|" \
-e "s|@MINOR@|$MINOR|" \
$portDir/additional-files/unrar.rdef > unrar.rdef
make DESTDIR=$prefix
}
INSTALL()
{
make DESTDIR=$prefix install
}