summaryrefslogtreecommitdiff
path: root/desktop/wmfs
diff options
context:
space:
mode:
authorBenjamin Trigona-Harany <bosth@alumni.sfu.ca>2011-05-15 22:05:37 -0500
committerRobby Workman <rworkman@slackbuilds.org>2011-05-15 22:05:37 -0500
commit5f21d4dff2ed450ff124a25ce7487cd4ef8c02d6 (patch)
tree014dbc485de25f9c81a6161810d491bd2d609cf9 /desktop/wmfs
parentad3f3308e812407b46cc134d2b46b759aad342f2 (diff)
downloadslackbuilds-5f21d4dff2ed450ff124a25ce7487cd4ef8c02d6.tar.gz
desktop/wmfs: Added (dynamic tiling window manager)
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'desktop/wmfs')
-rw-r--r--desktop/wmfs/README8
-rw-r--r--desktop/wmfs/doinst.sh10
-rw-r--r--desktop/wmfs/slack-desc19
-rw-r--r--desktop/wmfs/wmfs.SlackBuild89
-rw-r--r--desktop/wmfs/wmfs.info10
-rw-r--r--desktop/wmfs/xinitrc.wmfs20
6 files changed, 156 insertions, 0 deletions
diff --git a/desktop/wmfs/README b/desktop/wmfs/README
new file mode 100644
index 0000000000..a8df835106
--- /dev/null
+++ b/desktop/wmfs/README
@@ -0,0 +1,8 @@
+wmfs (Window Manager From Scratch) is a lightweight and highly
+configurable tiling window manager for X. It can be configured
+with a configuration file, supports Xft (Freetype) fonts, and
+is compliant with the Extended Window Manager Hints (EWMH) spec,
+Xinerama, and Xrandr. wmfs can be driven with Vi based commands
+(Viwmfs). wmfs also comes with a built-in systray.
+
+This requires imlib2.
diff --git a/desktop/wmfs/doinst.sh b/desktop/wmfs/doinst.sh
new file mode 100644
index 0000000000..a47480c86e
--- /dev/null
+++ b/desktop/wmfs/doinst.sh
@@ -0,0 +1,10 @@
+config() {
+ NEW="$1"
+ OLD="$(dirname $NEW)/$(basename $NEW .new)"
+ if [ ! -r $OLD ]; then
+ mv $NEW $OLD
+ elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
+ rm $NEW
+ fi
+}
+config etc/wmfs/wmfsrc.new
diff --git a/desktop/wmfs/slack-desc b/desktop/wmfs/slack-desc
new file mode 100644
index 0000000000..78090808b9
--- /dev/null
+++ b/desktop/wmfs/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------------------------------------------------------|
+wmfs: wmfs (dynamic tiling window manager)
+wmfs:
+wmfs: wmfs (Window Manager From Scratch) is a lightweight and highly
+wmfs: configurable tiling window manager for X. It supports Freetype
+wmfs: (Xft) fonts and is compliant with the Extended Window Manager
+wmfs: Hints (EWMH) specifications, Xinerama, and Xrandr.
+wmfs:
+wmfs:
+wmfs:
+wmfs:
+wmfs:
diff --git a/desktop/wmfs/wmfs.SlackBuild b/desktop/wmfs/wmfs.SlackBuild
new file mode 100644
index 0000000000..ac3bd81568
--- /dev/null
+++ b/desktop/wmfs/wmfs.SlackBuild
@@ -0,0 +1,89 @@
+#!/bin/sh
+
+# Slackware build script for wmfs
+
+# Written by Benjamin Trigona-Harany <bosth@alumni.sfu.ca>
+
+PRGNAM=wmfs
+VERSION=${VERSION:-201104}
+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 # Exit on most errors
+
+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 .
+find . \
+ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
+ -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
+ -exec chmod 644 {} \;
+
+./configure \
+ --prefix /usr \
+ --man-prefix /usr/man \
+ --xdg-config-dir /etc
+
+make
+make install DESTDIR=$PKG
+
+find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
+ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+
+# Don't clobber the default config
+mv $PKG/etc/wmfs/wmfsrc $PKG/etc/wmfs/wmfsrc.new
+
+# KDM menu entry
+mkdir -p $PKG/usr/share/apps/kdm/sessions
+ln -s /usr/share/xsessions/wmfs.desktop $PKG/usr/share/apps/kdm/sessions/
+
+# Install an xinitrc script
+mkdir -p $PKG/etc/X11/xinit
+cat $CWD/xinitrc.wmfs > $PKG/etc/X11/xinit/xinitrc.wmfs
+chmod 0755 $PKG/etc/X11/xinit/xinitrc.wmfs
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a \
+ COPYING README TODO rc/* \
+ $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/desktop/wmfs/wmfs.info b/desktop/wmfs/wmfs.info
new file mode 100644
index 0000000000..fe70971f2e
--- /dev/null
+++ b/desktop/wmfs/wmfs.info
@@ -0,0 +1,10 @@
+PRGNAM="wmfs"
+VERSION="201104"
+HOMEPAGE="http://wmfs.info/projects/wmfs"
+DOWNLOAD="http://wmfs.info/attachments/download/45/wmfs-201104.tar.gz"
+MD5SUM="323fa55885d86783f104f936e6b12c75"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+MAINTAINER="Benjamin Trigona-Harany"
+EMAIL="bosth@alumni.sfu.ca"
+APPROVED="rworkman"
diff --git a/desktop/wmfs/xinitrc.wmfs b/desktop/wmfs/xinitrc.wmfs
new file mode 100644
index 0000000000..55f52ede87
--- /dev/null
+++ b/desktop/wmfs/xinitrc.wmfs
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+userresources=$HOME/.Xresources
+usermodmap=$HOME/.Xmodmap
+sysresources=/etc/X11/xinit/.Xresources
+sysmodmap=/etc/X11/xinit/.Xmodmap
+
+# Merge in defaults and keymaps
+[ -f $sysresources ] && /usr/bin/xrdb -merge $sysresources
+[ -f $sysmodmap ] && /usr/bin/xmodmap $sysmodmap
+[ -f $userresources ] && /usr/bin/xrdb -merge $userresources
+[ -f $usermodmap ] && /usr/bin/xmodmap $usermodmap
+
+# Start wmfs
+if [ -z "$DESKTOP_SESSION" -a -x /usr/bin/ck-launch-session ]; then
+ exec ck-launch-session wmfs
+else
+ exec wmfs
+fi
+