mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-18 22:06:04 +01:00
desktop/redshift: allow compilation against geoclue2.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
6a950ab801
commit
778768445e
2 changed files with 10 additions and 13 deletions
|
@ -1,7 +1,7 @@
|
|||
redshift (screen colour adjuster)
|
||||
|
||||
Redshift adjusts the colour temperature of your screen according to
|
||||
your surroundings. This may help your eyes if you are working in front
|
||||
of the screen at night.
|
||||
your surroundings. This may help your eyes if you are working in
|
||||
front of the screen at night.
|
||||
|
||||
geoclue is an optional dependency.
|
||||
This package has an optional dependency on geoclue and/or geoclue2.
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
PRGNAM=redshift
|
||||
VERSION=${VERSION:-1.11}
|
||||
BUILD=${BUILD:-1}
|
||||
BUILD=${BUILD:-2}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
if [ -z "$ARCH" ]; then
|
||||
|
@ -47,25 +47,22 @@ 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 \
|
||||
\( -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 \
|
||||
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
||||
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
||||
|
||||
CLUE=""
|
||||
if ! pkg-config --exists geoclue; then
|
||||
CLUE="--disable-geoclue2"
|
||||
if ! pkg-config --exists geoclue-2.0
|
||||
then
|
||||
CLUE2="--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" \
|
||||
./configure \
|
||||
|
@ -75,8 +72,8 @@ CXXFLAGS="$SLKCFLAGS" \
|
|||
--sysconfdir=/etc \
|
||||
--localstatedir=/var \
|
||||
--mandir=/usr/man \
|
||||
$CLUE2 \
|
||||
--docdir=/usr/doc/$PRGNAM-$VERSION \
|
||||
$CLUE \
|
||||
--build=$ARCH-slackware-linux
|
||||
|
||||
make
|
||||
|
|
Loading…
Reference in a new issue