diff options
Diffstat (limited to 'desktop/breath-gtk-theme/breath-gtk-theme.SlackBuild')
-rw-r--r-- | desktop/breath-gtk-theme/breath-gtk-theme.SlackBuild | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/desktop/breath-gtk-theme/breath-gtk-theme.SlackBuild b/desktop/breath-gtk-theme/breath-gtk-theme.SlackBuild index fe0fe8765c..ecaeef5bc7 100644 --- a/desktop/breath-gtk-theme/breath-gtk-theme.SlackBuild +++ b/desktop/breath-gtk-theme/breath-gtk-theme.SlackBuild @@ -2,7 +2,7 @@ # 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 @@ -25,12 +25,13 @@ 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 @@ -40,9 +41,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 @@ -71,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 \) \ @@ -83,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 .. |