diff options
Diffstat (limited to 'desktop/redshift/redshift.SlackBuild')
-rw-r--r-- | desktop/redshift/redshift.SlackBuild | 31 |
1 files changed, 23 insertions, 8 deletions
diff --git a/desktop/redshift/redshift.SlackBuild b/desktop/redshift/redshift.SlackBuild index e42eb39268f2f..4387b0fb6e79f 100644 --- a/desktop/redshift/redshift.SlackBuild +++ b/desktop/redshift/redshift.SlackBuild @@ -2,16 +2,17 @@ # 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. PRGNAM=redshift -VERSION=${VERSION:-1.8} +VERSION=${VERSION:-1.11} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac @@ -22,8 +23,8 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" @@ -42,14 +43,28 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 +tar xvf $CWD/$PRGNAM-$VERSION.tar.xz 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 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + +CLUE="" +if ! pkg-config --exists geoclue; then + CLUE="--disable-geoclue2" +fi + +sed -i -e 's/gtk-update-icon-cache.*|| //' Makefile.am + +# build redshift-gtk, forcing python2 +# thanks to the fedora project for the patch +sed -i 's/\(AM_PATH_PYTHON(\[\)3\.2/\12.7/' configure.ac +sed -i 's/\(env python\)3/\1/' src/redshift-gtk/redshift-gtk.in +autopoint -f && AUTOPOINT="intltoolize --automake --copy" autoreconf -vif + CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ @@ -61,6 +76,7 @@ CXXFLAGS="$SLKCFLAGS" \ --localstatedir=/var \ --mandir=/usr/man \ --docdir=/usr/doc/$PRGNAM-$VERSION \ + $CLUE \ --build=$ARCH-slackware-linux make @@ -73,7 +89,7 @@ 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 +cp -a COPYING DESIGN HACKING README NEWS $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install @@ -82,4 +98,3 @@ cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} - |