summaryrefslogtreecommitdiff
path: root/desktop/redshift/redshift.SlackBuild
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 /desktop/redshift/redshift.SlackBuild
parent06a6210bd36b4d7ce501362df07efe786953655e (diff)
downloadslackbuilds-35c78b1eedc054b9d5678de099fea9056675f0ea.tar.gz
desktop/redshift: Updated for version 1.8.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'desktop/redshift/redshift.SlackBuild')
-rw-r--r--desktop/redshift/redshift.SlackBuild18
1 files changed, 11 insertions, 7 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