diff options
Diffstat (limited to 'system/conky/conky.SlackBuild')
-rw-r--r-- | system/conky/conky.SlackBuild | 37 |
1 files changed, 14 insertions, 23 deletions
diff --git a/system/conky/conky.SlackBuild b/system/conky/conky.SlackBuild index 67a3aa98bf..afd5d0b02e 100644 --- a/system/conky/conky.SlackBuild +++ b/system/conky/conky.SlackBuild @@ -2,28 +2,11 @@ # Slackware build script for conky -# Copyright (c) 2008, Antonio Hernández Blas <hba.nihilismus@gmail.com> -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# 1.- Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# -# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY -# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -# DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY -# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# Written by M.Dinslage contact: daedra1980@gmail.com PRGNAM=conky -VERSION=1.6.1 +VERSION=1.8.0 ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -46,11 +29,18 @@ fi set -e +if [ "${LUA:-yes}" = "yes" ]; then + lua="--enable-lua --enable-lua-cairo --enable-imlib2 --enable-lua-imlib2" +else + lua="--disable-lua" +fi + + rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar jxvf $CWD/$PRGNAM-$VERSION.tar.bz2 +tar xjvf $CWD/$PRGNAM-$VERSION.tar.bz2 cd $PRGNAM-$VERSION chown -R root:root . find . \ @@ -68,15 +58,16 @@ CXXFLAGS="$SLKCFLAGS" \ --mandir=/usr/man \ --enable-shared=yes \ --enable-static=no \ + --enable-weather-xoap \ --enable-audacious=yes \ --enable-mpd=yes \ - --enable-smapi=yes \ --enable-rss=yes \ --enable-wlan=yes \ + $lua \ --build=$ARCH-slackware-linux \ --host=$ARCH-slackware-linux -make +make make install-strip DESTDIR=$PKG ( cd $PKG/usr/man @@ -84,7 +75,7 @@ make install-strip DESTDIR=$PKG for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done ) -# Don't clobber an existing config file +# Move existing config file mv $PKG/etc/conky/conky.conf $PKG/etc/conky/conky.conf.new mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION |