# Packager: Phill Watkins pkgname=clipboard-daemon pkgver=1.0 pkgrel=2pw #arch=noarch source=("http://members.chello.nl/~h.lai/gnome-clipboard-daemon/clipboard-daemon-$pkgver.tar.bz2") sourcetemplate=http://people.salixos.org/pwatk/packages/xap/$pkgname/$pkgver #docs=() url=http://members.chello.nl/~h.lai/gnome-clipboard-daemon/ options=('noautodotnew') #doinst() { # #} slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "clipboard-daemon (Holds the X clipboard in memory)" "Normally, when you copy something in an X application and you close" "it, the content of the clipboard is lost. This is probably one of the" "biggest reasons why people keep saying that copy & paste in Linux" "\"doesn't work\"." "Clipboard Daemon is a program that keeps the content of your X" "clipboard in memory, so the clipboard won' get lost even after you" "close the application you copied from." "It's a daemon - it has no GUI. You start it and it'll run in the" "background and Just Work(tm)." ) build() { set -e cd $startdir/src/$pkgname-$pkgver sed -i -e "/CFLAGS=/s|-O2|$CFLAGS|g" Makefile make --jobs=$(( $(getconf _NPROCESSORS_ONLN) + 1 )) install -D -m 755 clipboard-daemon $startdir/pkg/usr/bin/clipboard-daemon install -d $startdir/pkg/etc/xdg/autostart cat <<-EOF> $startdir/pkg/etc/xdg/autostart/clipboard-daemon.desktop [Desktop Entry] Categories=Application;Utility; Exec=clipboard-daemon GenericName=Clipboard Daemon Icon=edit-paste Name=Clipboard Daemon Comment=Holds the X clipboard in memory Terminal=false Type=Application Version=1.0 X-GNOME-Autostart-enabled=false X-KDE-autostart-after=panel EOF chmod 644 $startdir/pkg/etc/xdg/autostart/clipboard-daemon.desktop set +e }