aboutsummaryrefslogtreecommitdiff
path: root/desktop/liquidshell
diff options
context:
space:
mode:
authorVijay Marcel <vijaymarcel@outlook.com>2022-10-23 21:50:44 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-10-29 10:28:35 +0700
commitfca0306482351534d05632733c1c59aeafd37461 (patch)
tree4dc3a86f9c74412f611aa6d4d5873c0ad6716000 /desktop/liquidshell
parent364eefe48c557f465a8f88575eb97d320daa3826 (diff)
desktop/liquidshell: Added (PlasmaShell Alternative)
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'desktop/liquidshell')
-rw-r--r--desktop/liquidshell/README38
-rw-r--r--desktop/liquidshell/doinst.sh39
-rw-r--r--desktop/liquidshell/liquidshell.SlackBuild110
-rw-r--r--desktop/liquidshell/liquidshell.info10
-rw-r--r--desktop/liquidshell/slack-desc19
5 files changed, 216 insertions, 0 deletions
diff --git a/desktop/liquidshell/README b/desktop/liquidshell/README
new file mode 100644
index 0000000000000..9d7d10b4bc3db
--- /dev/null
+++ b/desktop/liquidshell/README
@@ -0,0 +1,38 @@
+Liquidshell is an alternative to plasnashell. It does
+not use QtQuick but instead uses QtWidgets therefore no
+hardware acceleration is needed.
+Main Features:
+ -Wallpaper per virtual desktop
+ -No animations, no CPU hogging, low Memory footprint
+ -Instant startup
+ -No use of activities
+ - QtWidgets based, therefore follows widget style
+ from systemsettings
+ -Icons are used from your globally defined icon theme
+ from systemsettings
+ -Colors are used from your globally defined color theme
+ from systemsettings
+ -Can additionally be styled with css by passing the commandline
+ option -stylesheet filename.css (see included example stylesheet.css)
+ -uses existing KDE dialogs for most configurations, e.g. StartMenu,
+ Virtual Desktops, Bluetooth, Network One bottom DesktopPanel
+ Desktop Applets
+
+The config file and a default entry will be created at first
+run of liquidshell.
+
+To change the appearance details (beside the widget style,
+fonts, icon theme and color scheme selected via the systemsettings),
+you can use the commandline option -stylesheet filename.css
+to provide a Qt CSS widget stylesheet. An Example stylesheet.css
+is in /usr/doc/$PRGNAM-$VERSION
+
+To explicitly disable the Software-Updater and disable icons
+shown on the Pager buttons set the ~/.config/liquidshellrc
+config file entry:
+
+[SoftwareUpdates]
+enabled=false
+
+[Pager]
+showIcons=true
diff --git a/desktop/liquidshell/doinst.sh b/desktop/liquidshell/doinst.sh
new file mode 100644
index 0000000000000..9bea220a0a7f3
--- /dev/null
+++ b/desktop/liquidshell/doinst.sh
@@ -0,0 +1,39 @@
+config() {
+ NEW="$1"
+ OLD="$(dirname $NEW)/$(basename $NEW .new)"
+ # If there's no config file by that name, mv it over:
+ if [ ! -r $OLD ]; then
+ mv $NEW $OLD
+ elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
+ # toss the redundant copy
+ rm $NEW
+ fi
+ # Otherwise, we leave the .new copy for the admin to consider...
+}
+
+preserve_perms() {
+ NEW="$1"
+ OLD="$(dirname $NEW)/$(basename $NEW .new)"
+ if [ -e $OLD ]; then
+ cp -a $OLD ${NEW}.incoming
+ cat $NEW > ${NEW}.incoming
+ mv ${NEW}.incoming $NEW
+ fi
+ config $NEW
+}
+
+
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
+fi
+
+if [ -x /usr/bin/update-mime-database ]; then
+ /usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1
+fi
+
+# If other icon themes are installed, then add to/modify this as needed
+if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
+ if [ -x /usr/bin/gtk-update-icon-cache ]; then
+ /usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1
+ fi
+fi
diff --git a/desktop/liquidshell/liquidshell.SlackBuild b/desktop/liquidshell/liquidshell.SlackBuild
new file mode 100644
index 0000000000000..f423bd7228193
--- /dev/null
+++ b/desktop/liquidshell/liquidshell.SlackBuild
@@ -0,0 +1,110 @@
+#!/bin/bash
+
+# Slackware build script for liquidshell
+
+# Copyright 2022 Vijay Marcel
+# 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=liquidshell
+VERSION=${VERSION:-1.8.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 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
+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"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+fi
+
+set -e
+trap 'echo "$0 FAILED at line $LINENO!" | tee $OUTPUT/error-${PRGNAM}.log' ERR
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+cd $PRGNAM-$VERSION
+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 {} \;
+
+cmake -B build -S $TMP/$PRGNAM-$VERSION \
+ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_INSTALL_PREFIX:PATH=/usr \
+ -DCMAKE_INSTALL_LIBDIR:PATH=/usr/lib${LIBDIRSUFFIX} \
+ -DCMAKE_INSTALL_BINDIR:PATH=/usr/bin \
+ -DCMAKE_BUILD_TYPE=Release
+
+cmake --build build
+DESTDIR=$PKG cmake --install build
+
+rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la
+
+find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
+ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+
+find $PKG -name perllocal.pod -o -name ".packlist" -o -name "*.bs" | xargs rm -f || true
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a COPYING README stylesheet.css $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
diff --git a/desktop/liquidshell/liquidshell.info b/desktop/liquidshell/liquidshell.info
new file mode 100644
index 0000000000000..ac101d8436a2f
--- /dev/null
+++ b/desktop/liquidshell/liquidshell.info
@@ -0,0 +1,10 @@
+PRGNAM="liquidshell"
+VERSION="1.8.1"
+HOMEPAGE="https://apps.kde.org/liquidshell/"
+DOWNLOAD="https://github.com/KDE/liquidshell/archive/v1.8.1/liquidshell-1.8.1.tar.gz"
+MD5SUM="53d7e680ed55293e960fea7da2ce47a7"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES=""
+MAINTAINER="Vijay Marcel"
+EMAIL="vijaymarcel@outlook.com"
diff --git a/desktop/liquidshell/slack-desc b/desktop/liquidshell/slack-desc
new file mode 100644
index 0000000000000..023f2dc9a65bc
--- /dev/null
+++ b/desktop/liquidshell/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.
+# Line up the first '|' above the ':' following the base package name, and
+# the '|' on the right side marks the last column you can put a character in.
+# You must make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+liquidshell: liquidshell (PlasmaShell Alternative)
+liquidshell:
+liquidshell: Liquidshell is an alternative to plasnashell. It does
+liquidshell: not use QtQuick but instead uses QtWidgets therefore no
+liquidshell: hardware acceleration is needed.
+liquidshell:
+liquidshell:
+liquidshell: Homepage:https://apps.kde.org/liquidshell/
+liquidshell:
+liquidshell:
+liquidshell: