diff --git a/app-arch/unrar/additional-files/unrar.rdef b/app-arch/unrar/additional-files/unrar.rdef new file mode 100644 index 000000000..a0ef9fd2c --- /dev/null +++ b/app-arch/unrar/additional-files/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 = @MAJOR@, + middle = @MIDDLE@, + minor = @MINOR@, + variety = 0, + internal = 0, + short_info = "UnRAR", + long_info = "UnRAR ©1993-2016 Alexander Roshal" +}; diff --git a/app-arch/unrar/patches/unrar-5.4.1.patchset b/app-arch/unrar/patches/unrar-5.4.2.patchset similarity index 82% rename from app-arch/unrar/patches/unrar-5.4.1.patchset rename to app-arch/unrar/patches/unrar-5.4.2.patchset index 766d5bfe9..c7e7defcd 100644 --- a/app-arch/unrar/patches/unrar-5.4.1.patchset +++ b/app-arch/unrar/patches/unrar-5.4.2.patchset @@ -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 diff --git a/app-arch/unrar/unrar-5.4.1.recipe b/app-arch/unrar/unrar-5.4.1.recipe deleted file mode 100644 index 9abc7f752..000000000 --- a/app-arch/unrar/unrar-5.4.1.recipe +++ /dev/null @@ -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 -} diff --git a/app-arch/unrar/unrar-5.4.2.recipe b/app-arch/unrar/unrar-5.4.2.recipe new file mode 100644 index 000000000..2f5ba73f9 --- /dev/null +++ b/app-arch/unrar/unrar-5.4.2.recipe @@ -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 +}