The Unarchiver (unar + lsar utilities)

Make a PKGBUILD? Submit it here for user review and possible placement into the repository.

The Unarchiver (unar + lsar utilities)

Postby ebbix » Wed Sep 19, 2012 10:53 am

I modified this PKGBUILD to work on ARM and updated it to work with the latest (3.3) version of The Unarchiver.
The Unarchiver is an open source OS X extraction utility written in Objective-C and licensed under LGPL. It is currently the only open source tool capable of extracting RARv3 archives and is therefore an alternative to closed-source unrar tool (But it handles much more archive types, see http://code.google.com/p/theunarchiver/wiki/SupportedFormats).
When compiled on Linux, it provides two command-line utilities: lsar (which lists archive contents) and unar (which unpacks archives).
PKGBUILD:
$this->bbcode_second_pass_code('', '# Original author: Cedric Girard <girard.cedric@gmail.com>
# Contributor: N30N <archlinux@alunamation.com>
# Updated to 3.3 and Arch Linux ARM by <ebbes.ebbes@gmail.com>

pkgname=unarchiver
pkgver=3.3
pkgrel=1
pkgdesc="An Objective-C application for uncompressing archive files"
arch=('x86_64' 'i686' 'arm')
url="http://unarchiver.c3.cx/"
license=('LGPL2.1')
depends=('gnustep-base' 'openssl' 'bzip2' 'icu' 'gcc-libs' 'zlib')
makedepends=('gcc-objc')
source=("http://theunarchiver.googlecode.com/files/TheUnarchiver${pkgver}_src.zip"
"patches.patch")
sha1sums=('4206c9c5a935714b6ed13e11df1d5bddec534ca1'
'06a92e4fe684e45d93b9d52fedea276b8ad0f9c8')

build() {
cd "$srcdir/The Unarchiver"

patch -p1 < ../patches.patch

cd XADMaster
. /usr/share/GNUstep/Makefiles/GNUstep.sh
make -f Makefile.linux
}

package() {
cd "$srcdir/The Unarchiver/XADMaster"
install -d "$pkgdir/usr/bin/"
install -m755 unar lsar "$pkgdir/usr/bin/"

cd "$srcdir/The Unarchiver/Extra"
install -d "$pkgdir/usr/share/man/man1"
gzip -c lsar.1 > "$pkgdir/usr/share/man/man1"/lsar.1.gz
gzip -c unar.1 > "$pkgdir/usr/share/man/man1"/unar.1.gz
}

# vim:set ts=2 sw=2 et:')
patches.patch (fixes compiler and linker flags):
$this->bbcode_second_pass_code('', 'diff -Naur The Unarchiver/UniversalDetector/Makefile.linux The Unarchiver_patched/UniversalDetector/Makefile.linux
--- The Unarchiver/UniversalDetector/Makefile.linux 2012-09-06 14:02:39.000000000 +0200
+++ The Unarchiver_patched/UniversalDetector/Makefile.linux 2012-09-18 17:26:49.940396039 +0200
@@ -10,7 +10,6 @@

GNUSTEP_OPTS = -DGNUSTEP \
-DGNU_RUNTIME=1 \
- -D_NATIVE_OBJC_EXCEPTIONS \
-fgnu-runtime \
-fexceptions \
-fobjc-exceptions \
diff -Naur The Unarchiver/XADMaster/Makefile.linux The Unarchiver_patched/XADMaster/Makefile.linux
--- The Unarchiver/XADMaster/Makefile.linux 2012-09-06 14:02:39.000000000 +0200
+++ The Unarchiver_patched/XADMaster/Makefile.linux 2012-09-18 17:28:01.234861431 +0200
@@ -10,7 +10,6 @@

GNUSTEP_OPTS = -DGNUSTEP \
-DGNU_RUNTIME=1 \
- -D_NATIVE_OBJC_EXCEPTIONS \
-fgnu-runtime \
-fexceptions \
-fobjc-exceptions \
@@ -44,7 +43,8 @@
-lbz2 \
-licuuc \
-lobjc \
- -lm
+ -lm \
+ -lz

ALL_LDFLAGS = -Wl,--whole-archive \
-fexceptions \
')
I hope someone finds this useful.
However, I had to compile gnustep-base myself (and install it) first to make The Unarchiver properly link against libobjc.so.4.
ebbix
 
Posts: 48
Joined: Fri Aug 10, 2012 1:55 pm

Re: The Unarchiver (unar + lsar utilities)

Postby dinjo » Fri Oct 19, 2012 11:53 am

Does it supports LZMA2 compression for 7zip ?
dinjo
 
Posts: 258
Joined: Mon Nov 28, 2011 5:59 am


Return to User-Submitted Packages

Who is online

Users browsing this forum: No registered users and 5 guests

cron