aboutsummaryrefslogtreecommitdiffstats
path: root/quickshell/quickshell.SlackBuild
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-09-11 11:39:08 +0200
committerDanilo M. <danix@danix.xyz>2026-09-11 11:39:08 +0200
commit2d399cc76359675983dc659e08d6efb463107387 (patch)
tree587704f8adc4a5c952062a979815a9cc1d059dee /quickshell/quickshell.SlackBuild
parent1d4c5f38eea891ab9706dbc3afb03dd844023505 (diff)
downloadmy-slackbuilds-2d399cc76359675983dc659e08d6efb463107387.tar.gz
my-slackbuilds-2d399cc76359675983dc659e08d6efb463107387.zip
quickshell: add version 0.3.1
Add the quickshell package, a QtQuick toolkit for building status bars, widgets and other desktop components. Bumped from the initially added 0.2.1 to 0.3.1. Upstream renamed the cmake option CRASH_REPORTER to CRASH_HANDLER in 0.3.x, so the old flag would have been silently ignored and pulled in the crash handler along with its cpptrace dependency. Other fixes over the initial script: - DOWNLOAD was UNSUPPORTED with the real URL in DOWNLOAD_x86_64, which wrongly marked every non-x86_64 arch as unbuildable. The source is arch independent, so it belongs in DOWNLOAD. - REQUIRES said "qt6 cli11". qt6 is not an SBo package, and the cli11 entry did not match the SBo package name, which is CLI11. - The gitea archive is served under its Content-Disposition name (quickshell-v0.3.1.tar.gz) rather than the URL basename, so accept either filename when extracting. - DISTRIBUTOR claimed SlackBuilds.org. Upstream asks that this string identify the specific package source, and it is compiled into the binary, so name this repo instead. - Align TAG and PKGTYPE with the rest of the repo (_SBo, tgz), fix the slack-desc handy ruler to 72 characters, add the missing README and drop the leftover template comments. Builds clean on -current with a clean sbopkglint. Slackware 15.0 ships Qt5 only, so the build fails there on a missing Qt6; the package is -current only and the README notes this. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01456ddh6BkCimbiPi5WucyT
Diffstat (limited to 'quickshell/quickshell.SlackBuild')
-rw-r--r--quickshell/quickshell.SlackBuild108
1 files changed, 108 insertions, 0 deletions
diff --git a/quickshell/quickshell.SlackBuild b/quickshell/quickshell.SlackBuild
new file mode 100644
index 0000000..298cf9a
--- /dev/null
+++ b/quickshell/quickshell.SlackBuild
@@ -0,0 +1,108 @@
+#!/bin/bash
+
+# Slackware build script for quickshell
+
+# Copyright 2026 Danilo 'danix' Macri
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# 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=quickshell
+VERSION=${VERSION:-0.3.1}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i586 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+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}
+
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+elif [ "$ARCH" = "aarch64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM
+tar xvf $CWD/$PRGNAM-v$VERSION.tar.gz || tar xvf $CWD/v$VERSION.tar.gz
+cd $PRGNAM
+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 {} \;
+
+mkdir -p build
+cd build
+ cmake \
+ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DLIB_SUFFIX=${LIBDIRSUFFIX} \
+ -DDISTRIBUTOR="my-slackbuilds (danix)" \
+ -DDISTRIBUTOR_DEBUGINFO_AVAILABLE=NO \
+ -DCRASH_HANDLER=OFF \
+ -DCMAKE_BUILD_TYPE=Release ..
+ make
+ make install/strip DESTDIR=$PKG
+cd ..
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a \
+ BUILD.md CONTRIBUTING.md LICENSE* README.md changelog \
+ $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE