diff options
Diffstat (limited to 'desktop/breath-gtk-theme/breath-gtk-theme.SlackBuild')
-rw-r--r-- | desktop/breath-gtk-theme/breath-gtk-theme.SlackBuild | 36 |
1 files changed, 24 insertions, 12 deletions
diff --git a/desktop/breath-gtk-theme/breath-gtk-theme.SlackBuild b/desktop/breath-gtk-theme/breath-gtk-theme.SlackBuild index 9eeeb58bf8..ecaeef5bc7 100644 --- a/desktop/breath-gtk-theme/breath-gtk-theme.SlackBuild +++ b/desktop/breath-gtk-theme/breath-gtk-theme.SlackBuild @@ -1,8 +1,8 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for breath-gtk-theme -# Copyright 2020 Isaac Yu <isaacyu1@isaacyu1.com> +# Copyright 2020 Isaac Yu <isaacyu@protonmail.com> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -22,12 +22,16 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=breath-gtk-theme -VERSION=${VERSION:-da2706640f457f89de6c26312e391b244ff550b4} +VERSION=${VERSION:-5.9.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} SRCNAM=breath-gtk +COMMIT=${COMMIT:-da2706640f457f89de6c26312e391b244ff550b4} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -37,7 +41,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} @@ -61,9 +69,13 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $SRCNAM-$VERSION -tar xvf $CWD/$VERSION.tar.gz -cd $SRCNAM-$VERSION +rm -rf $SRCNAM-$COMMIT +TARBALL=$CWD/$COMMIT.tar.gz +if [ ! -e $TARBALL ] ; then + TARBALL=$CWD/breath-gtk-$COMMIT.tar.gz +fi +tar xvf $TARBALL +cd $SRCNAM-$COMMIT chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \ @@ -73,11 +85,11 @@ find -L . \ mkdir build cd build - cmake -DCMAKE_C_FLAGS:STRING=${SLKCFLAGS} \ - -DCMAKE_CXX_FLAGS:STRING=${SLKCFLAGS} \ + cmake -DCMAKE_C_FLAGS:STRING="${SLKCFLAGS}" \ + -DCMAKE_CXX_FLAGS:STRING="${SLKCFLAGS}" \ -DCMAKE_INSTALL_PREFIX=/usr \ - -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ - .. + -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ + .. make make install DESTDIR=$PKG cd .. @@ -93,4 +105,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 |