unrar: bump to 5.4.2, move unrar.rdef to additional-files. (#621)

This commit is contained in:
fbrosson
2016-05-31 18:28:46 +00:00
committed by Jérôme Duval
parent 38fb04a033
commit 6a8ce08d7d
4 changed files with 80 additions and 73 deletions

View File

@@ -0,0 +1,13 @@
resource app_signature "application/x-vnd.Roshal-UnRAR";
resource app_flags B_MULTIPLE_LAUNCH | B_BACKGROUND_APP;
resource app_version {
major = @MAJOR@,
middle = @MIDDLE@,
minor = @MINOR@,
variety = 0,
internal = 0,
short_info = "UnRAR",
long_info = "UnRAR ©1993-2016 Alexander Roshal"
};

View File

@@ -74,25 +74,6 @@ index 1b0813f..a07a741 100644
#if defined(__sparc) || defined(sparc) || defined(__hpux)
#ifndef BIG_ENDIAN
#define BIG_ENDIAN
diff --git a/unrar.rdef b/unrar.rdef
new file mode 100644
index 0000000..167f9ad
--- /dev/null
+++ b/unrar.rdef
@@ -0,0 +1,13 @@
+
+resource app_signature "application/x-vnd.Roshal-UnRAR";
+resource app_flags B_MULTIPLE_LAUNCH | B_BACKGROUND_APP;
+
+resource app_version {
+ major = 5,
+ middle = 3,
+ minor = 2,
+ variety = 0,
+ internal = 0,
+ short_info = "5.3.2",
+ long_info = "5.3.2 Alexander Roshal"
+};
--
2.2.2

View File

@@ -1,54 +0,0 @@
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/"
COPYRIGHT="Alexander Roshal"
LICENSE="UnRAR"
REVISION="1"
SOURCE_URI="http://www.rarlab.com/rar/unrarsrc-$portVersion.tar.gz"
CHECKSUM_SHA256="93444ce11626683db5900f795c6961137dd8758fd118bf0854cf43fb9cf9743d"
SOURCE_DIR="unrar"
PATCHES="unrar-$portVersion.patchset"
ARCHITECTURES="x86_gcc2 x86 x86_64"
PROVIDES="
unrar = $portVersion
cmd:unrar = $portVersion
"
REQUIRES="
haiku
"
BUILD_REQUIRES="
haiku_devel
cmd:make
cmd:g++
"
BUILD()
{
make DESTDIR=$prefix
}
INSTALL()
{
make DESTDIR=$prefix install
}

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="d91d5fa8abdbac60b3e2b7317cc1451a2b38c550adee977b847f22594c53f1bd"
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
}