diff options
Diffstat (limited to 'system/exomizer/exomizer.SlackBuild')
-rw-r--r-- | system/exomizer/exomizer.SlackBuild | 38 |
1 files changed, 26 insertions, 12 deletions
diff --git a/system/exomizer/exomizer.SlackBuild b/system/exomizer/exomizer.SlackBuild index 9f4f47f02b..862cdb6885 100644 --- a/system/exomizer/exomizer.SlackBuild +++ b/system/exomizer/exomizer.SlackBuild @@ -1,11 +1,18 @@ -#!/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. + +# 20191201 bkw: update for v3.0.2 # 20180829 bkw: update for v3.0.1 # 20180619 bkw: @@ -15,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.0.1} +VERSION=${VERSION:-3.1.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -28,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} @@ -55,14 +69,14 @@ 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 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 {} \+ make -C src CFLAGS="$SLKCFLAGS" mkdir -p $PKG/usr/bin @@ -80,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 |