summaryrefslogtreecommitdiff
path: root/misc/curtain
diff options
context:
space:
mode:
authorGeoff Ritter <geoff dot ritter at gmail dot com>2011-03-05 09:37:36 -0300
committerNiels Horn <niels.horn@slackbuilds.org>2011-03-05 09:37:36 -0300
commitd08bdbcca6f491f2d511f5225ab6b76cfa940ea5 (patch)
tree29526dd92f6679bcbe14e6b00bb88e7ac6cf5aee /misc/curtain
parentf499ccd5d2b6a164e479082dc9737372fbbe6f22 (diff)
downloadslackbuilds-d08bdbcca6f491f2d511f5225ab6b76cfa940ea5.tar.gz
misc/curtain: Added (Display a curtain on the desktop)
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
Diffstat (limited to 'misc/curtain')
-rw-r--r--misc/curtain/README3
-rw-r--r--misc/curtain/curtain.SlackBuild88
-rw-r--r--misc/curtain/curtain.info10
-rw-r--r--misc/curtain/doinst.sh10
-rw-r--r--misc/curtain/slack-desc19
5 files changed, 130 insertions, 0 deletions
diff --git a/misc/curtain/README b/misc/curtain/README
new file mode 100644
index 0000000000..4b669b598f
--- /dev/null
+++ b/misc/curtain/README
@@ -0,0 +1,3 @@
+Curtain is a tool that show a movable and resizable curtain on the desktop
+screen. It's primary function is for presentations and in conjunction with
+tools like ardesia.
diff --git a/misc/curtain/curtain.SlackBuild b/misc/curtain/curtain.SlackBuild
new file mode 100644
index 0000000000..552afbc9bf
--- /dev/null
+++ b/misc/curtain/curtain.SlackBuild
@@ -0,0 +1,88 @@
+#!/bin/sh
+
+# Slackware build script for curtain
+
+# Written by Geoff Ritter < geoff dot ritter at gmail dot com >
+
+# Public Domain
+
+PRGNAM=curtain
+VERSION=${VERSION:-0.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-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+cd $PRGNAM-$VERSION
+chown -R root:root .
+# If you are going to blindly reset permissions, this is a bit more readable.
+# However '-perm /111' may only be compatible with only gnu/find.
+find . \
+ -type d -exec chmod 755 {} \; -o \
+ -type f -perm /111 -exec chmod 755 {} \; -o \
+ -type f -exec chmod 644 {} \;
+
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+./configure \
+ --prefix=/usr \
+ --libdir=/usr/lib$LIBDIRSUFFIX \
+ --mandir=/usr/man \
+ --build=$ARCH-slackware-linux
+
+make
+make install DESTDIR=$PKG
+
+# Make sure the Icon parameter is set properly in .desktop file
+sed -i 's/Icon=.*/Icon=curtain/' $PKG/usr/share/applications/curtain.desktop
+# Copy the icon to the proper folder
+mkdir -p $PKG/usr/share/icons/hicolor/22x22/apps/
+cp $PKG/usr/share/pixmaps/curtain.png $PKG/usr/share/icons/hicolor/22x22/apps
+
+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
+
+# No Manpages
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a AUTHORS COPYING ChangeLog INSTALL NEWS README $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}
diff --git a/misc/curtain/curtain.info b/misc/curtain/curtain.info
new file mode 100644
index 0000000000..880522df20
--- /dev/null
+++ b/misc/curtain/curtain.info
@@ -0,0 +1,10 @@
+PRGNAM="curtain"
+VERSION="0.1"
+HOMEPAGE="http://code.google.com/p/ardesia/"
+DOWNLOAD="http://ardesia.googlecode.com/files/curtain-0.1.tar.gz"
+MD5SUM="8fc9a40e0eae71dbfa148fb967fd8aa6"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+MAINTAINER="Geoff Ritter"
+EMAIL="geoff dot ritter at gmail dot com"
+APPROVED="Niels Horn"
diff --git a/misc/curtain/doinst.sh b/misc/curtain/doinst.sh
new file mode 100644
index 0000000000..1f8ff67ded
--- /dev/null
+++ b/misc/curtain/doinst.sh
@@ -0,0 +1,10 @@
+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/misc/curtain/slack-desc b/misc/curtain/slack-desc
new file mode 100644
index 0000000000..aa076f566b
--- /dev/null
+++ b/misc/curtain/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------------------------------------------------------|
+curtain: Curtain (Display a curtain on the desktop)
+curtain:
+curtain: Curtain is a tool that show a movable and resizable curtain on the
+curtain: desktop screen. It's primary function is for presentations and in
+curtain: conjunction with tools like ardesia.
+curtain:
+curtain:
+curtain:
+curtain:
+curtain:
+curtain: