From 1aac783e12ce25ac22f0eeec274fc0e5e4129116 Mon Sep 17 00:00:00 2001 From: Wainamoinen Date: Sun, 29 Jan 2012 16:02:14 -0600 Subject: [PATCH] desktop/jwm: Added (Joe's Window Manager) Signed-off-by: Erik Hanson --- desktop/jwm/README | 6 +++ desktop/jwm/jwm.SlackBuild | 85 ++++++++++++++++++++++++++++++++++++++ desktop/jwm/jwm.info | 10 +++++ desktop/jwm/slack-desc | 19 +++++++++ desktop/jwm/xinitrc.jwm | 26 ++++++++++++ 5 files changed, 146 insertions(+) create mode 100644 desktop/jwm/README create mode 100644 desktop/jwm/jwm.SlackBuild create mode 100644 desktop/jwm/jwm.info create mode 100644 desktop/jwm/slack-desc create mode 100644 desktop/jwm/xinitrc.jwm diff --git a/desktop/jwm/README b/desktop/jwm/README new file mode 100644 index 0000000000..219a566081 --- /dev/null +++ b/desktop/jwm/README @@ -0,0 +1,6 @@ +JWM (Joe's Window Manager) is a lightweight stacking window manager +for the X Window System written by Joe Wingbermuehle. JWM is written +in C and uses only Xlib at a minimum. +It provides an interface similar to Windows 98 with a modern-looking +appearance and it can support some GNOME, Motif and Extended Window +Manager Hints. diff --git a/desktop/jwm/jwm.SlackBuild b/desktop/jwm/jwm.SlackBuild new file mode 100644 index 0000000000..45159b214c --- /dev/null +++ b/desktop/jwm/jwm.SlackBuild @@ -0,0 +1,85 @@ +#!/bin/sh + +# Slackware build script for jwm + +# Written by Wainamoinen + +PRGNAM=jwm +VERSION=${VERSION:-2.1.0} +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 xjf $CWD/$PRGNAM-$VERSION.tar.bz2 +cd $PRGNAM-$VERSION +chown -R root:root . +chmod -R u+w,go+r-w,a-s . + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --mandir=/usr/man \ + --docdir=/usr/doc/$PRGNAM-$VERSION \ + --build=$ARCH-slackware-linux \ + --disable-debug + +make +make install SYSCONF=$PKG/etc MANDIR=$PKG/usr/man BINDIR=$PKG/usr/bin + +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 + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a \ + LICENSE README \ + $PKG/usr/doc/$PRGNAM-$VERSION +mkdir -p $PKG/etc/X11/xinit +cp -a $CWD/xinitrc.jwm $PKG/etc/X11/xinit +chown -R root:root $PKG/etc/X11/xinit + +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +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/desktop/jwm/jwm.info b/desktop/jwm/jwm.info new file mode 100644 index 0000000000..7ab84d422a --- /dev/null +++ b/desktop/jwm/jwm.info @@ -0,0 +1,10 @@ +PRGNAM="jwm" +VERSION="2.1.0" +HOMEPAGE="http://www.joewing.net/programs/jwm/" +DOWNLOAD="http://www.joewing.net/programs/jwm/releases/jwm-2.1.0.tar.bz2" +MD5SUM="e8fab21b2410eb82032b7c3472af642c" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +MAINTAINER="Wainamoinen" +EMAIL="wainamoinen@gmail.com" +APPROVED="Erik Hanson" diff --git a/desktop/jwm/slack-desc b/desktop/jwm/slack-desc new file mode 100644 index 0000000000..a0fe292323 --- /dev/null +++ b/desktop/jwm/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----------------------------------------------------| +jwm: jwm (Joe's Window Manager) +jwm: +jwm: JWM (Joe's Window Manager) is a lightweight stacking window +jwm: manager for the X Window System written by Joe Wingbermuehle. +jwm: JWM is written in C and uses only Xlib at a minimum. +jwm: It provides an interface similar to Windows 98 with a modern- +jwm: looking appearance and it can support some GNOME, Motif and +jwm: Extended Window Manager Hints. +jwm: +jwm: +jwm: diff --git a/desktop/jwm/xinitrc.jwm b/desktop/jwm/xinitrc.jwm new file mode 100644 index 0000000000..38b0be1ae9 --- /dev/null +++ b/desktop/jwm/xinitrc.jwm @@ -0,0 +1,26 @@ +#!/bin/sh + +userresources=$HOME/.Xresources +usermodmap=$HOME/.Xmodmap +sysresources=/etc/X11/xinit/.Xresources +sysmodmap=/etc/X11/xinit/.Xmodmap + +# merge in defaults and keymaps + +if [ -f $sysresources ]; then + xrdb -merge $sysresources +fi + +if [ -f $sysmodmap ]; then + xmodmap $sysmodmap +fi + +if [ -f $userresources ]; then + xrdb -merge $userresources +fi + +if [ -f $usermodmap ]; then + xmodmap $usermodmap +fi + +exec /usr/bin/jwm