desktop/redshift: Updated for version 1.8.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
David Matthew Jerry Koenig 2014-01-23 07:02:34 +07:00 committed by Erik Hanson
parent 06a6210bd3
commit 35c78b1eed
2 changed files with 15 additions and 11 deletions

View file

@ -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

View file

@ -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"