diff options
Diffstat (limited to 'desktop/Qogir-icon-theme/Qogir-icon-theme.SlackBuild')
-rw-r--r-- | desktop/Qogir-icon-theme/Qogir-icon-theme.SlackBuild | 27 |
1 files changed, 22 insertions, 5 deletions
diff --git a/desktop/Qogir-icon-theme/Qogir-icon-theme.SlackBuild b/desktop/Qogir-icon-theme/Qogir-icon-theme.SlackBuild index cb2e23e73b..b409af884d 100644 --- a/desktop/Qogir-icon-theme/Qogir-icon-theme.SlackBuild +++ b/desktop/Qogir-icon-theme/Qogir-icon-theme.SlackBuild @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for Qogir-icon-theme @@ -22,16 +22,26 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# 20220312 bkw: Modified by SlackBuilds.org. VERSION must be a +# constant, because our validation scripts check the VERSION in the +# script against the VERSION in the .info file, and they must match. + +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=Qogir-icon-theme -VERSION=${VERSION:-20200221} +VERSION=${VERSION:-20201122} +SRCVER=${SRCVER:-$( echo $VERSION | sed 's,\(....\)\(..\)\(..\),\1-\2-\3,' )} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} ARCH=noarch -SRCVER=${SRCVER:-2020-02-21} +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi -CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -65,4 +75,11 @@ 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} +# 20200407 bkw: makepkg's symlink search and doinst.sh creation doesn't +# scale well. This makes the build complete much faster, and create an +# identical doinst.sh. +find . -type l \ + -printf '( cd %h ; rm -rf %f )\n( cd %h ; ln -sf %l %f )\n' -delete | \ + sed 's,cd \./,cd ,' >> $PKG/install/doinst.sh + +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |