From b88397ca3638fcc4b1f7239ec9d7c79a6190f5c0 Mon Sep 17 00:00:00 2001 From: Willy Sudiarto Raharjo Date: Thu, 8 Jan 2015 23:35:00 +0700 Subject: [PATCH] colord: Upgraded to 1.2.1. Signed-off-by: Willy Sudiarto Raharjo --- colord/colord.SlackBuild | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/colord/colord.SlackBuild b/colord/colord.SlackBuild index d568cf9..101f94c 100644 --- a/colord/colord.SlackBuild +++ b/colord/colord.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for colord -# Copyright 2014 Willy Sudiarto Raharjo +# Copyright 2014-2015 Willy Sudiarto Raharjo # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,7 +23,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=colord -VERSION=${VERSION:-1.1.8} +VERSION=${VERSION:-1.2.1} BUILD=${BUILD:-1} TAG=${TAG:-_csb} @@ -56,6 +56,17 @@ else LIBDIRSUFFIX="" fi +if ! grep -q ^colord: /etc/group ; then + groupadd -g 297 colord + useradd -d /var/lib/colord -u 297 -g colord -s /bin/false colord +fi + +if [ "${BASH_COMPLETION:-no}" = "yes" ]; then + USE_BASH="--enable-bash-completion" +else + USE_BASH="--disable-bash-completion" +fi + set -e rm -rf $PKG @@ -84,7 +95,9 @@ CXXFLAGS="$SLKCFLAGS" \ --disable-gusb \ --disable-udev \ --disable-systemd-login \ - --build=$ARCH-slackware-linux + --with-daemon-user=colord \ + --build=$ARCH-slackware-linux \ + $USE_BASH make make install DESTDIR=$PKG @@ -104,6 +117,9 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild find $PKG/usr/doc/$PRGNAM-$VERSION/ -type f -exec chmod 644 {} \; chown -R root:root $PKG/usr/doc/$PRGNAM-$VERSION +mkdir -p $PKG/var/lib/$PRGNAM +chown -R $PRGNAM:$PRGNAM $PKG/var/lib/$PRGNAM + mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh