mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-21 19:42:24 +01:00
desktop/jwm: Added (Joe's Window Manager)
Signed-off-by: Erik Hanson <erik@slackbuilds.org>
This commit is contained in:
parent
29ca0fd354
commit
1aac783e12
5 changed files with 146 additions and 0 deletions
6
desktop/jwm/README
Normal file
6
desktop/jwm/README
Normal file
|
@ -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.
|
85
desktop/jwm/jwm.SlackBuild
Normal file
85
desktop/jwm/jwm.SlackBuild
Normal file
|
@ -0,0 +1,85 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Slackware build script for jwm
|
||||
|
||||
# Written by Wainamoinen <wainamoinen@gmail.com>
|
||||
|
||||
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}
|
10
desktop/jwm/jwm.info
Normal file
10
desktop/jwm/jwm.info
Normal file
|
@ -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"
|
19
desktop/jwm/slack-desc
Normal file
19
desktop/jwm/slack-desc
Normal file
|
@ -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:
|
26
desktop/jwm/xinitrc.jwm
Normal file
26
desktop/jwm/xinitrc.jwm
Normal file
|
@ -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
|
Loading…
Reference in a new issue