summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Matthew Jerry Koenig <dmitrinove@yahoo.com>2014-01-23 07:02:34 +0700
committerErik Hanson <erik@slackbuilds.org>2014-01-29 23:21:10 -0600
commit35c78b1eedc054b9d5678de099fea9056675f0ea (patch)
tree0bf4bf14d33fb78d7142c69c1714b82210ec1c39
parent06a6210bd36b4d7ce501362df07efe786953655e (diff)
downloadslackbuilds-35c78b1eedc054b9d5678de099fea9056675f0ea.tar.gz
desktop/redshift: Updated for version 1.8.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--desktop/redshift/redshift.SlackBuild18
-rw-r--r--desktop/redshift/redshift.info8
2 files changed, 15 insertions, 11 deletions
diff --git a/desktop/redshift/redshift.SlackBuild b/desktop/redshift/redshift.SlackBuild
index ce5f87ea1a..e42eb39268 100644
--- a/desktop/redshift/redshift.SlackBuild
+++ b/desktop/redshift/redshift.SlackBuild
@@ -5,7 +5,7 @@
# Public domain, written 2010.
PRGNAM=redshift
-VERSION=${VERSION:-1.2}
+VERSION=${VERSION:-1.8}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -36,7 +36,7 @@ else
LIBDIRSUFFIX=""
fi
-set -e
+set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
@@ -46,15 +46,15 @@ tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
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 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
- -exec chmod 644 {} \;
+ \( -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 {} \;
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
- --enable-gtk \
+ --disable-ubuntu \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
@@ -69,7 +69,11 @@ make install DESTDIR=$PKG
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+find $PKG/usr/man -type f -exec gzip -9 {} \;
+for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a COPYING AUTHORS README NEWS INSTALL $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
diff --git a/desktop/redshift/redshift.info b/desktop/redshift/redshift.info
index 9d0fd17bdf..3ff470ab90 100644
--- a/desktop/redshift/redshift.info
+++ b/desktop/redshift/redshift.info
@@ -1,10 +1,10 @@
PRGNAM="redshift"
-VERSION="1.2"
+VERSION="1.8"
HOMEPAGE="http://jonls.dk/redshift/"
-DOWNLOAD="http://launchpad.net/redshift/trunk/1.2/+download/redshift-1.2.tar.bz2"
-MD5SUM="fdb33a27e95db9c8b519e628e94cf73e"
+DOWNLOAD="https://github.com/jonls/redshift/releases/download/v1.8/redshift-1.8.tar.bz2"
+MD5SUM="a05c34bc7b8fbb4f5d546a0b5cca5d6f"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES=""
+REQUIRES="pyxdg"
MAINTAINER="David Matthew Jerry Koenig"
EMAIL="koenigdavidmj@gmail.com"