summaryrefslogtreecommitdiffstats
path: root/desktop/redshift
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/redshift')
-rw-r--r--desktop/redshift/README5
-rw-r--r--desktop/redshift/redshift.SlackBuild16
-rw-r--r--desktop/redshift/redshift.info2
3 files changed, 14 insertions, 9 deletions
diff --git a/desktop/redshift/README b/desktop/redshift/README
index d81ea7e8de..c3df168d18 100644
--- a/desktop/redshift/README
+++ b/desktop/redshift/README
@@ -6,8 +6,3 @@ of the screen at night.
This package has a dependency on geoclue2, however it will compile the
package without it if geoclue2 is not present.
-
-This package will build against python3 for the gui if python3 is
-available. If not, we use the fedora patch to build the gui with
-python2. If you want to compile using python3 on 14.2, you will need
-the pyxdg and pygobject3-python3 packages from SBo.
diff --git a/desktop/redshift/redshift.SlackBuild b/desktop/redshift/redshift.SlackBuild
index 055801ccb5..4cbc6067b1 100644
--- a/desktop/redshift/redshift.SlackBuild
+++ b/desktop/redshift/redshift.SlackBuild
@@ -1,14 +1,17 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for redshift
# Written by David Matthew Jerry Koenig <koenigdavidmj@gmail.com>
# Maintained by Gregory Tourte <artourter@gmail.com> since 2017
# Public domain, written 2010.
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=redshift
VERSION=${VERSION:-1.12}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -18,7 +21,14 @@ if [ -z "$ARCH" ]; then
esac
fi
-CWD=$(pwd)
+# 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}
@@ -101,4 +111,4 @@ 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:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/desktop/redshift/redshift.info b/desktop/redshift/redshift.info
index e0d56e7410..778544d649 100644
--- a/desktop/redshift/redshift.info
+++ b/desktop/redshift/redshift.info
@@ -5,6 +5,6 @@ DOWNLOAD="https://github.com/jonls/redshift/releases/download/v1.12/redshift-1.1
MD5SUM="5d04f2413dacdf3434cb86f373842462"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="pyxdg geoclue2"
+REQUIRES="geoclue2"
MAINTAINER="ArTourter"
EMAIL="artourter@gmail.com"