aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.extras/nvchecker.toml6
-rw-r--r--wscreensavers/README27
-rw-r--r--wscreensavers/doinst.sh9
-rw-r--r--wscreensavers/slack-desc19
-rw-r--r--wscreensavers/wscreensavers.SlackBuild114
-rw-r--r--wscreensavers/wscreensavers.info12
6 files changed, 187 insertions, 0 deletions
diff --git a/.extras/nvchecker.toml b/.extras/nvchecker.toml
index 928bb7b..66b4995 100644
--- a/.extras/nvchecker.toml
+++ b/.extras/nvchecker.toml
@@ -254,3 +254,9 @@ prefix = "v"
source = "github"
github = "nmeum/android-tools"
use_latest_release = true
+
+[wscreensavers]
+source = "github"
+github = "chrisfair/wscreensavers"
+use_latest_release = true
+prefix = "v"
diff --git a/wscreensavers/README b/wscreensavers/README
new file mode 100644
index 0000000..5d6c29a
--- /dev/null
+++ b/wscreensavers/README
@@ -0,0 +1,27 @@
+WScreenSavers is a native Wayland screensaver, lock screen and live
+wallpaper suite. It ships 23 WebGL/Canvas savers, runs the stock
+XScreenSaver hacks through Xvfb, locks the screen with PAM (or hands
+off to hyprlock/swaylock) and can run any saver as an animated
+wallpaper on wlroots compositors (Hyprland, Sway, River, Wayfire) and
+KDE.
+
+This SlackBuild targets Slackware -current, which ships Go, nodejs,
+gtk-layer-shell, PAM, xscreensaver and Xvfb. It builds offline from a
+vendor tarball holding the Go modules and the frontend's npm packages,
+so it is x86_64 only.
+
+Upstream ships a systemd user unit, which is not installed. Start the
+idle daemon from your compositor's autostart, e.g. in Hyprland:
+
+ exec-once = WEBKIT_DISABLE_DMABUF_RENDERER=1 wscreensavers --daemon
+
+Optional: wlr-randr (multi-monitor detection on wlroots), hyprlock or
+swaylock (external lock providers), rss-glx (more 3D savers).
+
+Upstream shows a support reminder at startup. Delete
+/usr/share/wscreensavers/nag to disable it; package upgrades restore
+it.
+
+The Noctalia plugin sources are installed to
+/usr/share/wscreensavers/noctalia-plugins/wscreensavers. Copy that
+directory to ~/.config/noctalia/plugins/ to use it.
diff --git a/wscreensavers/doinst.sh b/wscreensavers/doinst.sh
new file mode 100644
index 0000000..e0e75ea
--- /dev/null
+++ b/wscreensavers/doinst.sh
@@ -0,0 +1,9 @@
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
+fi
+
+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 -f -q usr/share/icons/hicolor >/dev/null 2>&1
+ fi
+fi
diff --git a/wscreensavers/slack-desc b/wscreensavers/slack-desc
new file mode 100644
index 0000000..3002c2c
--- /dev/null
+++ b/wscreensavers/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------------------------------------------------------|
+wscreensavers: wscreensavers (Wayland screensaver and live wallpaper suite)
+wscreensavers:
+wscreensavers: WScreenSavers brings XScreenSaver to Wayland compositors using the
+wscreensavers: layer-shell and idle-notify protocols. It ships 23 WebGL/Canvas
+wscreensavers: savers, runs the stock XScreenSaver hacks, locks the screen with
+wscreensavers: PAM and can turn any saver into an animated desktop wallpaper.
+wscreensavers:
+wscreensavers: Homepage: https://github.com/chrisfair/wscreensavers
+wscreensavers:
+wscreensavers:
+wscreensavers:
diff --git a/wscreensavers/wscreensavers.SlackBuild b/wscreensavers/wscreensavers.SlackBuild
new file mode 100644
index 0000000..5526979
--- /dev/null
+++ b/wscreensavers/wscreensavers.SlackBuild
@@ -0,0 +1,114 @@
+#!/bin/bash
+#
+# Slackware build script for wscreensavers
+#
+# Copyright 2026 danix <danix@danix.xyz>
+# All rights reserved.
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version, with the following exception:
+# the text of the GPL license may be omitted.
+
+# This program is distributed in the hope that it will be useful, but
+# without any warranty; without even the implied warranty of
+# merchantability or fitness for a particular purpose. Compiling,
+# interpreting, executing or merely reading the text of the program
+# may result in lapses of consciousness and/or very being, up to and
+# including the end of all existence and the Universe as we know it.
+# See the GNU General Public License for more details.
+
+# You may have received a copy of the GNU General Public License along
+# with this program (most likely, a file named COPYING). If not, see
+# <http://www.gnu.org/licenses/>.
+#
+
+cd $(dirname $0) ; CWD=$(pwd)
+
+PRGNAM=wscreensavers
+VERSION=${VERSION:-1.0.23}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
+
+# Go modules and frontend/node_modules, generated by the maintainer with
+# gen-wscreensavers-vendor.sh. node_modules holds x86_64 native binaries
+# (esbuild, rollup), hence DOWNLOAD_x86_64 only.
+VENDOR=$PRGNAM-$VERSION-vendor
+
+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" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+else
+ echo "$ARCH is not supported: the vendored node_modules are x86_64 only."
+ exit 1
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+cd $PRGNAM-$VERSION
+# Extracts vendor/ and frontend/node_modules/ into the source tree.
+tar xvf $CWD/$VENDOR.tar.xz
+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 {} \+
+
+# The Go binary embeds frontend/dist, so build the frontend first.
+# Upstream's "make build" runs "npm install"; call vite directly instead.
+( cd frontend && npm_config_offline=true npm run build )
+
+# Fully offline: vendored modules only, no proxy, no toolchain download.
+export GOPATH="$(pwd)/.gocache"
+export GOPROXY=off
+export GOTOOLCHAIN=local
+export GOFLAGS="-mod=vendor -buildmode=pie -trimpath -modcacherw"
+export CGO_CPPFLAGS="$SLKCFLAGS"
+export CGO_CFLAGS="$SLKCFLAGS"
+export CGO_CXXFLAGS="$SLKCFLAGS"
+go build -tags "desktop,production,webkit2_41" -ldflags="-s -w" -o $PRGNAM .
+rm -rf "$GOPATH"
+
+# Binary, .desktop, icon, support reminder and the Noctalia plugin sources.
+make install DESTDIR=$PKG PREFIX=/usr
+# Slackware has no systemd: start "wscreensavers --daemon" from the
+# compositor's autostart instead (see README).
+rm -rf $PKG/usr/lib/systemd
+
+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
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a LICENSE README.md $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/wscreensavers/wscreensavers.info b/wscreensavers/wscreensavers.info
new file mode 100644
index 0000000..9368f35
--- /dev/null
+++ b/wscreensavers/wscreensavers.info
@@ -0,0 +1,12 @@
+PRGNAM="wscreensavers"
+VERSION="1.0.23"
+HOMEPAGE="https://github.com/chrisfair/wscreensavers"
+DOWNLOAD="UNSUPPORTED"
+MD5SUM=""
+DOWNLOAD_x86_64="https://github.com/chrisfair/wscreensavers/archive/v1.0.23/wscreensavers-1.0.23.tar.gz \
+ https://packages.danix.xyz/sbo/wscreensavers/wscreensavers-1.0.23-vendor.tar.xz"
+MD5SUM_x86_64="567ee9a4b7e03b34144c424526cbfa13 \
+ f33579ed88daf377d638900435a2aa96"
+REQUIRES="webkit2gtk4.1"
+MAINTAINER="danix"
+EMAIL="danix@danix.xyz"