diff options
-rw-r--r-- | desktop/wmfs/README | 8 | ||||
-rw-r--r-- | desktop/wmfs/doinst.sh | 10 | ||||
-rw-r--r-- | desktop/wmfs/slack-desc | 19 | ||||
-rw-r--r-- | desktop/wmfs/wmfs.SlackBuild | 89 | ||||
-rw-r--r-- | desktop/wmfs/wmfs.info | 10 | ||||
-rw-r--r-- | desktop/wmfs/xinitrc.wmfs | 20 |
6 files changed, 156 insertions, 0 deletions
diff --git a/desktop/wmfs/README b/desktop/wmfs/README new file mode 100644 index 0000000000000..a8df835106afd --- /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 0000000000000..a47480c86eb7b --- /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 0000000000000..78090808b9f43 --- /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 0000000000000..ac3bd815684b0 --- /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 0000000000000..fe70971f2ee54 --- /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 0000000000000..55f52ede87a24 --- /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 + |