diff options
Diffstat (limited to 'system/exomizer/exomizer.SlackBuild')
-rw-r--r-- | system/exomizer/exomizer.SlackBuild | 26 |
1 files changed, 19 insertions, 7 deletions
diff --git a/system/exomizer/exomizer.SlackBuild b/system/exomizer/exomizer.SlackBuild index fba03086b4..862cdb6885 100644 --- a/system/exomizer/exomizer.SlackBuild +++ b/system/exomizer/exomizer.SlackBuild @@ -1,11 +1,13 @@ -#!/bin/sh +#!/bin/bash # 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. @@ -20,10 +22,13 @@ # - only install exoraw if it exists (was removed in 3.0.0) # - can still build with VERSION=2.0.9 or VERSION=2.0.10, if needed +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} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -33,7 +38,11 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -60,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 {} \+ @@ -82,4 +94,4 @@ 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} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |