aboutsummaryrefslogtreecommitdiff
path: root/system/unar
diff options
context:
space:
mode:
Diffstat (limited to 'system/unar')
-rw-r--r--system/unar/README7
-rw-r--r--system/unar/README.Slackware11
-rw-r--r--system/unar/document-undocumented-options.patch45
-rw-r--r--system/unar/slack-desc19
-rw-r--r--system/unar/unar.SlackBuild106
-rw-r--r--system/unar/unar.info10
6 files changed, 198 insertions, 0 deletions
diff --git a/system/unar/README b/system/unar/README
new file mode 100644
index 000000000000..6d7b8340e6a5
--- /dev/null
+++ b/system/unar/README
@@ -0,0 +1,7 @@
+This package contains two command-line utilities, unar and lsar, which
+can be used to unpack and list archives, respectively.
+
+Supported file formats include Zip, Tar-GZip, Tar-BZip2, RAR, 7-zip,
+LhA, StuffIt and many other old and obscure formats. See
+http://unarchiver.c3.cx/formats for a more complete list of supported
+formats.
diff --git a/system/unar/README.Slackware b/system/unar/README.Slackware
new file mode 100644
index 000000000000..ee5a8b1b4cb1
--- /dev/null
+++ b/system/unar/README.Slackware
@@ -0,0 +1,11 @@
+GNUstep comes with its own time zone files in the directory
+/usr/lib[64]/GNUstep/Libraries/gnustep-base/Versions/X.XX/Resources/NSTimeZones/zones/
+If the GNUstep local time zone is not set, then unar and lsar will
+complain that "No local time zone specified".
+
+The GNUstep local time zone is obtained from (in order of preference):
+1. the user defaults database: NSGlobalDomain "Local Time Zone"
+2. the GNUSTEP_TZ environment variable
+3. the file "localtime" in
+/usr/lib[64]/GNUstep/Libraries/gnustep-base/Versions/X.XX/Resources/NSTimeZones/
+4. the TZ environment variable
diff --git a/system/unar/document-undocumented-options.patch b/system/unar/document-undocumented-options.patch
new file mode 100644
index 000000000000..3e7a5342f507
--- /dev/null
+++ b/system/unar/document-undocumented-options.patch
@@ -0,0 +1,45 @@
+Description: Document undocumented options
+ lsar's -L and -v options and unar's -v option are not documented in
+ their respective manual pages, so do so.
+Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/unar/+bug/1393321
+Bug: https://code.google.com/p/theunarchiver/issues/detail?id=352
+Author: Matt Kraai <kraai@ftbfs.org>
+Last-Update: 2014-12-15
+
+Index: unar/Extra/lsar.1
+===================================================================
+--- unar.orig/Extra/lsar.1 2014-12-15 07:00:54.285823351 -0800
++++ unar/Extra/lsar.1 2014-12-15 07:01:24.095917401 -0800
+@@ -11,6 +11,9 @@
+ .BR \-l ", " \-long
+ Print more information about each file in the archive.
+ .TP
++.BR \-L ", " \-verylong
++Print all available information about each file in the archive.
++.TP
+ .BR \-t ", " \-test
+ Test the integrity of the files in the archive, if possible.
+ .TP
+@@ -49,5 +52,8 @@
+ .TP
+ .BR \-h ", " \-help
+ Display help information.
++.TP
++.BR \-v ", " \-version
++Print version and exit.
+ .SH SEE ALSO
+ .BR unar (1)
+Index: unar/Extra/unar.1
+===================================================================
+--- unar.orig/Extra/unar.1 2014-12-15 07:00:54.285823351 -0800
++++ unar/Extra/unar.1 2014-12-15 07:01:24.095917401 -0800
+@@ -68,6 +68,9 @@
+ .BR \-q ", " \-quiet
+ Run in quiet mode.
+ .TP
++.BR \-v ", " \-version
++Print version and exit.
++.TP
+ .BR \-h ", " \-help
+ Display help information.
+ .SH SEE ALSO
diff --git a/system/unar/slack-desc b/system/unar/slack-desc
new file mode 100644
index 000000000000..0757fa98ffd0
--- /dev/null
+++ b/system/unar/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.
+# Line up the first '|' above the ':' following the base package name, and
+# the '|' on the right side marks the last column you can put a character in.
+# You must make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+unar: unar (CLI tools to list and extract archive file contents)
+unar:
+unar: This package contains two command-line utilities, unar and lsar,
+unar: which can be used to unpack and list archives, respectively.
+unar:
+unar: Supported file formats include Zip, Tar-GZip, Tar-BZip2, RAR, 7-zip,
+unar: LhA, StuffIt and many other old and obscure formats. See
+unar: http://unarchiver.c3.cx/formats for a more complete list of supported
+unar: formats.
+unar:
+unar: Home page: http://unarchiver.c3.cx/commandline
diff --git a/system/unar/unar.SlackBuild b/system/unar/unar.SlackBuild
new file mode 100644
index 000000000000..2e769501c9d4
--- /dev/null
+++ b/system/unar/unar.SlackBuild
@@ -0,0 +1,106 @@
+#!/bin/sh
+
+# Slackware build script for <appname>
+
+# Copyright 2016, Alexander Verbovetsky, Moscow, Russia
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+PRGNAM=unar
+VERSION=${VERSION:-1.10.1}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i586 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+else
+ SLKCFLAGS="-O2"
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf "The Unarchiver" $PRGNAM-$VERSION
+unzip "$CWD/$PRGNAM$VERSION"_src.zip
+mv "The Unarchiver" $PRGNAM-$VERSION
+cd $PRGNAM-$VERSION
+chown -R root:root .
+find -L . \
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+
+export CFLAGS="$SLKCFLAGS"
+export CXXFLAGS="$SLKCFLAGS"
+export OBJCFLAGS="$SLKCFLAGS"
+
+cd XADMaster
+make -f Makefile.linux
+
+mkdir -p $PKG/usr/bin
+install -m 0755 -o root -g root lsar unar $PKG/usr/bin/
+
+cd ../Extra
+patch -p2 < $CWD/document-undocumented-options.patch
+mkdir -p $PKG/usr/man/man1
+install -m 0644 -o root -g root lsar.1 unar.1 $PKG/usr/man/man1
+
+mkdir -p $PKG/usr/share/bash-completion/completions
+install -m 0644 -o root -g root unar.bash_completion \
+ $PKG/usr/share/bash-completion/completions/unar
+install -m 0644 -o root -g root lsar.bash_completion \
+ $PKG/usr/share/bash-completion/completions/lsar
+
+cd ..
+
+find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
+ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+
+find $PKG/usr/man -type f -exec gzip -9 {} \;
+for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a README.md $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/system/unar/unar.info b/system/unar/unar.info
new file mode 100644
index 000000000000..3b816dbf4921
--- /dev/null
+++ b/system/unar/unar.info
@@ -0,0 +1,10 @@
+PRGNAM="unar"
+VERSION="1.10.1"
+HOMEPAGE="https://unarchiver.c3.cx/commandline"
+DOWNLOAD="http://unarchiver.c3.cx/downloads/unar1.10.1_src.zip"
+MD5SUM="8fb16cf42ee2832d63ff378fd049e08c"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES="gnustep-base"
+MAINTAINER="Alexander Verbovetsky"
+EMAIL="alik@ejik.org"