misc/ardesia: Added (Pen/Touch ready on-screen annotation)

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

31
misc/ardesia/README Normal file
View file

@ -0,0 +1,31 @@
Ardesia turns your screen into a digital sketchpad to annotate or draw
on the entire screen. It also lets you record and stream it on the
network with vlc. You can draw upon the desktop or import an image
as well as annotate and redistribute it. Ardesia is also pressure
sensitive assuming your device is properly configured.
USER TIPS:
Ardesia is set to be 'always on top' and will be on top of even desktop
panels. However, if you have shortcuts too or launch the program with
'-d' you can toggle the 'always on top' option and the panel should
be back on top. This will allow you to opperate at least operate the
panel as well as minimize ardesia to regain full control over the
desktop. Personally, they should of had a 'pass through' mode so that
you would not have to hide the panel or the drawings to do things on
the desktop.
The PDF export will allow you to add new pages to a pdf that are screen
captures of when the button is pressed. It does not save vector shapes.
Fluxbox and Blackbox are not compatible! The program will draw
black over everything and not allow you to access the tools the same
goes for curtain and spotlighter (maintained by ardesia). Openbox
works without issues. You are on your own testing other minimalist
window managers.
This requires gsl.
Runtime Requires
- A Composite manager (compiz, kwin, xcompmgr, cairo-compmgr, etc.)
Runtime Optional
- VLC for recording and streaming

View file

@ -0,0 +1,94 @@
#!/bin/sh
# Slackware build script for ardesia
# Written by Geoff Ritter < geoff dot ritter at gmail dot com >
# Public Domain
PRGNAM=ardesia
VERSION=${VERSION:-0.6}
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 {} \;
# Note, while there are no library files installed, the Make file apparently
# uses --libdir to decided where to find some of the libraries.
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--libdir=/usr/lib$LIBDIRSUFFIX \
--mandir=/usr/man \
--docdir=/usr/doc/$PRGNAM-$VERSION \
--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=ardesia/' $PKG/usr/share/applications/ardesia.desktop
# Copy the icon to the proper folder
mkdir -p $PKG/usr/share/icons/hicolor/22x22/apps/
cp $PKG/usr/share/pixmaps/ardesia.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
# make install already did this but to the wrong directory
# --docdir is not respected
mv $PKG/usr/doc/ardesia/* $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/ardesia/ardesia.info Normal file
View file

@ -0,0 +1,10 @@
PRGNAM="ardesia"
VERSION="0.6"
HOMEPAGE="http://code.google.com/p/ardesia/"
DOWNLOAD="http://ardesia.googlecode.com/files/ardesia-0.6.tar.gz"
MD5SUM="1dcb2d54ed15d5cb25cc5b1968ac6562"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
MAINTAINER="Geoff Ritter"
EMAIL="geoff do ritter at gmail dot com"
APPROVED="Niels Horn"

10
misc/ardesia/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/ardesia/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------------------------------------------------------|
ardesia: Ardesia (Pen/Touch ready on-screen annotation)
ardesia:
ardesia: Ardesia turns your screen into a digital sketchpad to annotate or draw
ardesia: on the entire screen. It also lets you record and stream it on the
ardesia: network. You can draw upon the desktop or import an image, annotate,
ardesia: and redistribute it. Ardesia is also pressure sensitive assuming
ardesia: your device is properly configured.
ardesia:
ardesia:
ardesia:
ardesia: