diff options
author | At.Dichev <at.dichev74@gmail.com> | 2014-12-24 20:01:35 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2014-12-24 20:03:31 +0700 |
commit | 54f15c443a574a83230721d225570a8cb5f128a1 (patch) | |
tree | 6202d941c9783ecfb4a835fe4a247c8d931eaf26 /desktop/conky-manager/conky-manager.SlackBuild | |
parent | 9be592fc7ae618feb959161f7ac30cc9e789768b (diff) | |
download | slackbuilds-54f15c443a574a83230721d225570a8cb5f128a1.tar.gz |
desktop/conky-manager: Added (Conky front-end).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'desktop/conky-manager/conky-manager.SlackBuild')
-rw-r--r-- | desktop/conky-manager/conky-manager.SlackBuild | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/desktop/conky-manager/conky-manager.SlackBuild b/desktop/conky-manager/conky-manager.SlackBuild new file mode 100644 index 0000000000..e7784d1986 --- /dev/null +++ b/desktop/conky-manager/conky-manager.SlackBuild @@ -0,0 +1,72 @@ +#!/bin/sh + +# Slackware build script for conky-manager + +# Written by At.Dichev contact: at.dichev74@gmail + +PRGNAM=conky-manager +VERSION=${VERSION:-2.3.3} +SRCVER=2.3.3~132~ubuntu15.04.1 +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i486 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$SRCVER +tar xvf $CWD/${PRGNAM}_${SRCVER}.tar.xz +cd $PRGNAM-$SRCVER +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 {} \; + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +make +make install DESTDIR=$PKG + +find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a AUTHORS COPYING INSTALL README TODO $PKG/usr/doc/$PRGNAM-$VERSION/ +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |