summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorMarcel Saegebarth <marc@mos6581.de>2014-10-17 07:58:06 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2014-10-17 07:58:06 +0700
commit27cebad5f9f71617f6ac35f10c62a24c854d45f1 (patch)
tree500959b8de713266aaab039a1080640191f2a5ff /desktop
parent178a67587a65b55c17918ab8282e1dd3b090da9b (diff)
downloadslackbuilds-27cebad5f9f71617f6ac35f10c62a24c854d45f1.tar.gz
desktop/alltray: Added (docks applications into system tray).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'desktop')
-rw-r--r--desktop/alltray/README6
-rw-r--r--desktop/alltray/alltray.SlackBuild97
-rw-r--r--desktop/alltray/alltray.info10
-rw-r--r--desktop/alltray/doinst.sh9
-rw-r--r--desktop/alltray/slack-desc19
5 files changed, 141 insertions, 0 deletions
diff --git a/desktop/alltray/README b/desktop/alltray/README
new file mode 100644
index 0000000000..97494decd5
--- /dev/null
+++ b/desktop/alltray/README
@@ -0,0 +1,6 @@
+AllTray is an application which docks other application software
+into the system tray ("notification area") of a desktop environment
+such as GNOME, KDE, or XFCE. It aims to be independent of both
+desktop environment and window manager.
+
+Example for `jack-rack`: alltray -H -p `ps -C jack-rack -o pid=`
diff --git a/desktop/alltray/alltray.SlackBuild b/desktop/alltray/alltray.SlackBuild
new file mode 100644
index 0000000000..6bc27ec290
--- /dev/null
+++ b/desktop/alltray/alltray.SlackBuild
@@ -0,0 +1,97 @@
+#!/bin/sh
+
+# SlackBuild script for "alltray".
+# Copyright 2014 Marcel Saegebarth <marc@mos6581.de>
+# All rights reserved.
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions are
+# met:
+#
+# * Redistributions of source code must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+# "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 COPYRIGHT
+# OWNER OR CONTRIBUTORS 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.
+
+PRGNAM=alltray
+VERSION=${VERSION:-0.7.5.1dev}
+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
+rm -rf $TMP/$PRGNAM-$VERSION
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+cd $PRGNAM-$VERSION
+chown -R root:root .
+find . \
+ \( -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 {} \;
+
+CXXFLAGS="$SLKCFLAGS" \
+./configure \
+ --prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --mandir=/usr/man \
+ --build=$ARCH-slackware-linux
+
+make
+make install-strip DESTDIR=$PKG
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a ABOUT-NLS AUTHORS COPYING ChangeLog ChangeLog.2004-2006 HACKING INSTALL \
+ NEWS README README.in REQUIREMENTS $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+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 $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/desktop/alltray/alltray.info b/desktop/alltray/alltray.info
new file mode 100644
index 0000000000..eae48a3f9a
--- /dev/null
+++ b/desktop/alltray/alltray.info
@@ -0,0 +1,10 @@
+PRGNAM="alltray"
+VERSION="0.7.5.1dev"
+HOMEPAGE="https://launchpad.net/alltray/"
+DOWNLOAD="https://launchpad.net/alltray/trunk/0.7.5.1dev/+download/alltray-0.7.5.1dev.tar.gz"
+MD5SUM="5842253b89a5943031b5a02bbd8fd4fb"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES="libgtop"
+MAINTAINER="Marcel Saegebarth"
+EMAIL="marc@mos6581.de"
diff --git a/desktop/alltray/doinst.sh b/desktop/alltray/doinst.sh
new file mode 100644
index 0000000000..3e5691a052
--- /dev/null
+++ b/desktop/alltray/doinst.sh
@@ -0,0 +1,9 @@
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
+fi
+
+if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
+ if [ -x /usr/bin/gtk-update-icon-cache ]; then
+ /usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1
+ fi
+fi
diff --git a/desktop/alltray/slack-desc b/desktop/alltray/slack-desc
new file mode 100644
index 0000000000..f7b953931d
--- /dev/null
+++ b/desktop/alltray/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.
+# Line up the first '|' above the ':' following the base package name, and
+# the '|' on the right side marks the last column you can put a character in.
+# You must make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+alltray: alltray (docks applications into system tray)
+alltray:
+alltray: AllTray is an application which docks other application software
+alltray: into the system tray ("notification area") of a desktop environment
+alltray: such as GNOME, KDE, or XFCE. It aims to be independent of both
+alltray: desktop environment and window manager.
+alltray:
+alltray: Homepage: https://launchpad.net/alltray/
+alltray:
+alltray:
+alltray: