summaryrefslogtreecommitdiffstats
path: root/system/exomizer/exomizer.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/exomizer/exomizer.SlackBuild')
-rw-r--r--system/exomizer/exomizer.SlackBuild16
1 files changed, 9 insertions, 7 deletions
diff --git a/system/exomizer/exomizer.SlackBuild b/system/exomizer/exomizer.SlackBuild
index 1d6ec8b391..862cdb6885 100644
--- a/system/exomizer/exomizer.SlackBuild
+++ b/system/exomizer/exomizer.SlackBuild
@@ -2,10 +2,12 @@
# Slackware build script for exomizer
-# Written by B. Watson (yalhcru@gmail.com)
+# Written by B. Watson (urchlay@slackware.uk)
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+# 20210826 bkw: update for v3.1.1.
+
# 20210225 bkw: update for v3.1.0, try using upstream's download
# URL again. Handle bitbucket adding ?rev=<hash> to the filename, by
# using .zip* as the source filename. Not ideal, but workable.
@@ -23,7 +25,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=exomizer
-VERSION=${VERSION:-3.1.0}
+VERSION=${VERSION:-3.1.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -36,9 +38,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -70,8 +69,11 @@ cd $TMP
rm -rf $PRGNAM-$VERSION
mkdir -p $PRGNAM-$VERSION
cd $PRGNAM-$VERSION
-unzip $CWD/${PRGNAM}${VERSION//./}.zip* -x dos/\* win32/\* || \
- unzip $CWD/$PRGNAM-$VERSION.zip* -x dos/\* win32/\*
+
+# 20221227 bkw: stop this from failing when I've got 2 copies of
+# the zip file in my directory (one with .1 at the end of the name).
+ZIPFILE=$( /bin/ls $CWD/$PRGNAM-$VERSION.zip* | head -1 )
+unzip $ZIPFILE -x win32/\*
chown -R root:root .
find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
\! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+