aboutsummaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2020-05-22 21:33:50 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-05-22 23:36:13 +0700
commita289f8b6c7d2a91bafc485fc50ed9cb6f1c899b0 (patch)
tree5c7315bcdfee3e3fc7bbd9ff09eda87aa61141d4 /desktop
parent175f2735e8c26bafc5ba46be188c2eb26fe313d5 (diff)
desktop/unsaver: Added (deactivate screensaver).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'desktop')
-rw-r--r--desktop/unsaver/README8
-rw-r--r--desktop/unsaver/slack-desc19
-rw-r--r--desktop/unsaver/unsaver.SlackBuild66
-rw-r--r--desktop/unsaver/unsaver.info10
4 files changed, 103 insertions, 0 deletions
diff --git a/desktop/unsaver/README b/desktop/unsaver/README
new file mode 100644
index 000000000000..61d28e97fd11
--- /dev/null
+++ b/desktop/unsaver/README
@@ -0,0 +1,8 @@
+unsaver (deactivate screensaver on joystick or fullscreen activity)
+
+unsaver lets you play games with your joysticks/gamepads and watch
+fullscreen videos without your screensaver activating due to lack of
+keyboard/mouse input.
+
+unsaver should be started from your .xinitrc or whatever X startup
+script your window manager or desktop environment uses.
diff --git a/desktop/unsaver/slack-desc b/desktop/unsaver/slack-desc
new file mode 100644
index 000000000000..21b230b4a75f
--- /dev/null
+++ b/desktop/unsaver/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------------------------------------------------------|
+unsaver: unsaver (deactivate screensaver on joystick or fullscreen activity)
+unsaver:
+unsaver: unsaver lets you play games with your joysticks/gamepads and watch
+unsaver: fullscreen videos without your screensaver activating due to lack
+unsaver: of keyboard/mouse input.
+unsaver:
+unsaver: unsaver should be started from your .xinitrc or whatever X
+unsaver: startup script your window manager or desktop environment uses.
+unsaver:
+unsaver:
+unsaver:
diff --git a/desktop/unsaver/unsaver.SlackBuild b/desktop/unsaver/unsaver.SlackBuild
new file mode 100644
index 000000000000..60c237ab9ba9
--- /dev/null
+++ b/desktop/unsaver/unsaver.SlackBuild
@@ -0,0 +1,66 @@
+#!/bin/sh
+
+# Slackware build script for unsaver
+
+# Written by B. Watson (yalhcru@gmail.com)
+
+# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+
+PRGNAM=unsaver
+VERSION=${VERSION:-0.3.0}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i586 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+CWD=$(pwd)
+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
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.xz
+cd $PRGNAM-$VERSION
+chown -R root:root .
+find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
+ \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
+
+make OPTFLAGS="$SLKCFLAGS" \
+ PREFIX=/usr \
+ MAN1DIR=/usr/man/man1 \
+ DOCDIR=/usr/doc/$PRGNAM-$VERSION \
+ DESTDIR=$PKG \
+ all install
+
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+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}
diff --git a/desktop/unsaver/unsaver.info b/desktop/unsaver/unsaver.info
new file mode 100644
index 000000000000..c7dc01d163fb
--- /dev/null
+++ b/desktop/unsaver/unsaver.info
@@ -0,0 +1,10 @@
+PRGNAM="unsaver"
+VERSION="0.3.0"
+HOMEPAGE="http://urchlay.naptime.net/repos/unsaver/"
+DOWNLOAD="http://urchlay.naptime.net/~urchlay/src/unsaver-0.3.0.tar.xz"
+MD5SUM="7a7c20b4e5dd8fcaa32b5b8fabe081bd"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES=""
+MAINTAINER="B. Watson"
+EMAIL="yalhcru@gmail.com"