diff options
author | B. Watson <urchlay@slackware.uk> | 2024-10-07 05:14:29 -0400 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2024-10-12 11:34:42 +0700 |
commit | a9556c0143acb1048613bdbc181edb1120704328 (patch) | |
tree | f514d92077dfbdde493269055d5be2578639fe54 | |
parent | ad378789363488bf30375b5fa846165578e4fae2 (diff) |
system/unar: New maintainer.
Signed-off-by: B. Watson <urchlay@slackware.uk>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | system/unar/README | 2 | ||||
-rw-r--r-- | system/unar/slack-desc | 2 | ||||
-rw-r--r-- | system/unar/unar.SlackBuild | 86 | ||||
-rw-r--r-- | system/unar/unar.info | 4 |
4 files changed, 40 insertions, 54 deletions
diff --git a/system/unar/README b/system/unar/README index 6b840a6fc63f..e076990dd13e 100644 --- a/system/unar/README +++ b/system/unar/README @@ -1,3 +1,5 @@ +unar (CLI tools to list and extract archive file contents) + This package contains two command-line utilities, unar and lsar, which can be used to unpack and list archives, respectively. diff --git a/system/unar/slack-desc b/system/unar/slack-desc index c2be7f916f99..3a27230981ad 100644 --- a/system/unar/slack-desc +++ b/system/unar/slack-desc @@ -16,4 +16,4 @@ unar: LhA, StuffIt and many other old and obscure formats. See unar: https://theunarchiver.com for a more complete list of supported unar: formats. unar: -unar: Home page: https://theunarchiver.com/command-line +unar: Homepage: https://theunarchiver.com/command-line diff --git a/system/unar/unar.SlackBuild b/system/unar/unar.SlackBuild index 43ac01aa34c1..f759acb89ef0 100644 --- a/system/unar/unar.SlackBuild +++ b/system/unar/unar.SlackBuild @@ -1,33 +1,23 @@ #!/bin/bash -# Slackware build script for <appname> - -# Copyright 2016-2023 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. +# Slackware build script for unar + +# Original author: Alexander Verbovetsky, Moscow, Russia. +# Modified and now maintained by B. Watson <urchlay@slackware.uk>. +# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. + +# 20241006 bkw: BUILD=2 +# - take over maintenance. +# - build in a top-level dir in $TMP (easier cleanup). +# - simplify scrippt. +# - relicense as WTFPL (thanks, Alexander). cd $(dirname $0) ; CWD=$(pwd) PRGNAM=unar VERSION=${VERSION:-1.10.8} UDVERSION=${UDVERSION:-1.1} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -63,17 +53,17 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf XADMaster-$VERSION UniversalDetector +rm -rf $PRGNAM-$VERSION +mkdir -p $PRGNAM-$VERSION +cd $PRGNAM-$VERSION tar xvf $CWD/XADMaster-$VERSION.tar.gz tar xvf $CWD/universal-detector-$UDVERSION.tar.gz mv universal-detector-$UDVERSION UniversalDetector -cd XADMaster-$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 {} \; +find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} + -o \ + \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} + + +cd XADMaster-$VERSION export CFLAGS="$SLKCFLAGS" export CXXFLAGS="$SLKCFLAGS" @@ -81,28 +71,22 @@ export OBJCFLAGS="$SLKCFLAGS" make -f Makefile.linux -mkdir -p $PKG/usr/bin -install -m 0755 -o root -g root lsar unar $PKG/usr/bin/ - -mkdir -p $PKG/usr/man/man1 -install -m 0644 -o root -g root Extra/lsar.1 Extra/unar.1 \ - $PKG/usr/man/man1 - -mkdir -p $PKG/usr/share/bash-completion/completions -install -m 0644 -o root -g root Extra/unar.bash_completion \ - $PKG/usr/share/bash-completion/completions/unar -install -m 0644 -o root -g root Extra/lsar.bash_completion \ - $PKG/usr/share/bash-completion/completions/lsar - -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 +PKGMAN1=$PKG/usr/man/man1 +PKGBIN=$PKG/usr/bin +PKGCOMP=$PKG/usr/share/bash-completion/completions +INST="install -o root -g root" + +mkdir -p $PKGMAN1 $PKGBIN $PKGCOMP +for i in lsar unar; do + $INST -s -m 0755 $i $PKGBIN + gzip -9c < Extra/$i.1 > $PKG/usr/man/man1/$i.1.gz + $INST -m 0644 Extra/$i.bash_completion $PKGCOMP/$i +done + +PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION +mkdir -p $PKGDOC +cp -a README.md $PKGDOC +cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc diff --git a/system/unar/unar.info b/system/unar/unar.info index 35ebada0b2aa..351e6efaae3f 100644 --- a/system/unar/unar.info +++ b/system/unar/unar.info @@ -8,5 +8,5 @@ MD5SUM="3199b8ffdb9ceb67d1809befca9bd712 \ DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="gnustep-base" -MAINTAINER="Alexander Verbovetsky" -EMAIL="alik@ejik.org" +MAINTAINER="B. Watson" +EMAIL="urchlay@slackware.uk" |