summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorYanes Checcacci Balod <yanes@pobox.com>2014-06-21 12:36:03 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2014-06-21 12:50:54 +0700
commit0ca404fff6b54732c5675e4f230626bd9b320372 (patch)
treeafc6902b7afd4498f65fccd27ac58f6496fbb279 /misc
parent0cf63525fdb52e7f9bc1f6285f6c492cb323f955 (diff)
downloadslackbuilds-0ca404fff6b54732c5675e4f230626bd9b320372.tar.gz
misc/wmbday: Added (dock application).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'misc')
-rw-r--r--misc/wmbday/README11
-rw-r--r--misc/wmbday/slack-desc19
-rw-r--r--misc/wmbday/wmbday-0.3.1.patch17
-rw-r--r--misc/wmbday/wmbday.SlackBuild105
-rw-r--r--misc/wmbday/wmbday.info10
5 files changed, 162 insertions, 0 deletions
diff --git a/misc/wmbday/README b/misc/wmbday/README
new file mode 100644
index 0000000000..42d09ccf18
--- /dev/null
+++ b/misc/wmbday/README
@@ -0,0 +1,11 @@
+wmbday is a dock application (dockapp) which displays the next 4
+coming birthdays.
+
+Left clicking on names will give information in an xmessage box.
+Left click somewhere in the window while notify will stop the
+animation.
+
+By pressing the right mouse button you can now switch the backlight
+on or off.
+
+It has a patch to set some variables/file locations.
diff --git a/misc/wmbday/slack-desc b/misc/wmbday/slack-desc
new file mode 100644
index 0000000000..91c1b6beab
--- /dev/null
+++ b/misc/wmbday/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------------------------------------------------------|
+wmbday: wmbday (dock application)
+wmbday:
+wmbday: wmbday is a dock application (dockapp) which displays the next 4
+wmbday: coming birthdays.
+wmbday:
+wmbday: Left clicking on names will give information in an xmessage box.
+wmbday: Left click somewhere in the window while notify will stop the
+wmbday: animation.
+wmbday:
+wmbday: By pressing the right mouse button you can now switch the backlight
+wmbday: on or off.
diff --git a/misc/wmbday/wmbday-0.3.1.patch b/misc/wmbday/wmbday-0.3.1.patch
new file mode 100644
index 0000000000..f04eb57f35
--- /dev/null
+++ b/misc/wmbday/wmbday-0.3.1.patch
@@ -0,0 +1,17 @@
+--- Makefile 2006-07-22 14:12:55.000000000 -0300
++++ Makefile.new 2014-06-21 01:17:52.000000000 -0300
+@@ -1,4 +1,4 @@
+-PREFIX = /usr/local
++PREFIX = /usr
+ BIN_DESTDIR = $(PREFIX)/bin
+ MAN_DESTDIR = $(PREFIX)/man/man1
+
+@@ -10,7 +10,7 @@
+ LDLIBS = -lX11 -lXext -lXpm
+
+ PACKAGE = wmbday
+-VERSION = 0.3
++VERSION = 0.3.1
+
+
+ all: wmbday
diff --git a/misc/wmbday/wmbday.SlackBuild b/misc/wmbday/wmbday.SlackBuild
new file mode 100644
index 0000000000..514775a30c
--- /dev/null
+++ b/misc/wmbday/wmbday.SlackBuild
@@ -0,0 +1,105 @@
+#!/bin/sh
+
+# Slackware build script for wmbday
+
+# Copyright (c) 2014, Yanes Checcacci Balod <yanes@pobox.com>, Brazil
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "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 AUTHOR 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=wmbday
+VERSION=${VERSION:-0.3.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 xvzf $CWD/$PRGNAM-$VERSION.tar.gz
+cd $PRGNAM-$VERSION
+chown -R root:root .
+find -L . \
+ \( -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 {} \;
+
+# Patch it!
+cp $CWD/wmbday-0.3.1.patch ./
+patch -p0 < wmbday-0.3.1.patch
+
+# Making dirs manually
+mkdir -p $PKG/usr/bin
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+mkdir -p $PKG/usr/man/man1
+
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+./configure
+make
+make install
+
+# Collecting each file to package build directory
+mv /usr/bin/wmbday $PKG/usr/bin
+mv /usr/man/man1/wmbday.1 $PKG/usr/man/man1
+
+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
+
+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
+
+# Collecting each file to DOC package build directory
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+cp -v COPYING ChangeLog INSTALL data.sample.simple data.sample.vcard $PKG/usr/doc/$PRGNAM-$VERSION/
+
+mkdir -p $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/misc/wmbday/wmbday.info b/misc/wmbday/wmbday.info
new file mode 100644
index 0000000000..5b0348f51d
--- /dev/null
+++ b/misc/wmbday/wmbday.info
@@ -0,0 +1,10 @@
+PRGNAM="wmbday"
+VERSION="0.3.1"
+HOMEPAGE="http://freecode.com/projects/wmbday"
+DOWNLOAD="http://ftp.nsysu.edu.tw/FreeBSD/ports/local-distfiles/uqs/wmbday-0.3.1.tar.gz"
+MD5SUM="7ba1394ea2eb65cdf08dea52349d27f8"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES=""
+MAINTAINER="Yanes Checcacci Balod"
+EMAIL="yanes@pobox.com"