misc/curtain: Added (Display a curtain on the desktop)

Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
This commit is contained in:
Geoff Ritter 2011-03-05 09:37:36 -03:00 committed by Niels Horn
parent f499ccd5d2
commit d08bdbcca6
5 changed files with 130 additions and 0 deletions

3
misc/curtain/README Normal file
View file

@ -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.

View file

@ -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}

10
misc/curtain/curtain.info Normal file
View file

@ -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"

10
misc/curtain/doinst.sh Normal file
View file

@ -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

19
misc/curtain/slack-desc Normal file
View file

@ -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: