diff options
author | Damian Perticone <mjolnirdam@gmail.com> | 2022-05-06 08:13:19 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-05-07 13:59:35 +0700 |
commit | be18fdbf053949c9ec0bd1597d22911eb19c2230 (patch) | |
tree | 419faf275c3d5c187442c371bbd4c4a8ffc1dfb1 | |
parent | b141ea80b00ae4cfdcea7b3bbe1b44c5b306d893 (diff) |
desktop/emwm: Added (enhanced motif window manager)
Signed-off-by: Dave Woodfall <dave@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | desktop/emwm/README | 11 | ||||
-rw-r--r-- | desktop/emwm/doinst.sh | 3 | ||||
-rw-r--r-- | desktop/emwm/emwm.SlackBuild | 115 | ||||
-rw-r--r-- | desktop/emwm/emwm.desktop | 5 | ||||
-rw-r--r-- | desktop/emwm/emwm.info | 10 | ||||
-rw-r--r-- | desktop/emwm/slack-desc | 19 | ||||
-rw-r--r-- | desktop/emwm/xinitrc.emwm | 33 |
7 files changed, 196 insertions, 0 deletions
diff --git a/desktop/emwm/README b/desktop/emwm/README new file mode 100644 index 000000000000..536e3b9a08c5 --- /dev/null +++ b/desktop/emwm/README @@ -0,0 +1,11 @@ +EMWM is a fork of the Motif Window Manager with fixes and enhancements. +The idea behind this is to provide compatibility with current xorg +extensions and applications, without changing the way the window manager +looks and behaves. This includes support for multi-monitor setups +trough Xinerama/Xrandr, UFT-8 support with Xft fonts, and overall better +compatibility with software that requires Extended Window Manager Hints. +Additionally a couple of goodies are available in the separate utilities +package: XmToolbox, a toolchest like application launcher, which +reads it's multi-level menu structure from a simple plain-text file +~/.toolboxrc, and XmSm, a simple session manager that provides +session configuration, locking and shutdown/suspend options. diff --git a/desktop/emwm/doinst.sh b/desktop/emwm/doinst.sh new file mode 100644 index 000000000000..5fb28930db0b --- /dev/null +++ b/desktop/emwm/doinst.sh @@ -0,0 +1,3 @@ +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 +fi diff --git a/desktop/emwm/emwm.SlackBuild b/desktop/emwm/emwm.SlackBuild new file mode 100644 index 000000000000..b2a5d6200f96 --- /dev/null +++ b/desktop/emwm/emwm.SlackBuild @@ -0,0 +1,115 @@ +#!/bin/bash + +# Slackware build script for emwm + +# Copyright 2022 Damian Perticone, Berisso, Argentina +# 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. + +cd $(dirname $0) ; CWD=$(pwd) + +PRGNAM=emwm +VERSION=${VERSION:-1.0} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i586 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -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 xvf $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 {} \; + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +make + +cd src +install -Dm 755 emwm -t $PKG/usr/bin/ +install -Dm 644 emwm.1 -t $PKG/usr/man/man1 +install -Dm 644 system.emwmrc -t $PKG/etc/X11 +mv Emwm.ad Emwm +install -Dm 644 Emwm -t $PKG/etc/X11/app-defaults +mkdir -p $PKG/usr/share/xsessions +cat $CWD/emwm.desktop > $PKG/usr/share/xsessions/emwm.desktop + +cd .. + +rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la + +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 COPYING README $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/etc/X11/xinit +cat $CWD/xinitrc.emwm > $PKG/etc/X11/xinit/xinitrc.emwm +chmod 0755 $PKG/etc/X11/xinit/xinitrc.emwm + +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 diff --git a/desktop/emwm/emwm.desktop b/desktop/emwm/emwm.desktop new file mode 100644 index 000000000000..af77de48fc09 --- /dev/null +++ b/desktop/emwm/emwm.desktop @@ -0,0 +1,5 @@ +[Desktop Entry] +Name=emwm +Comment=Enhanced Motif Window Manager +Exec=/usr/bin/xmsm +Type=Application diff --git a/desktop/emwm/emwm.info b/desktop/emwm/emwm.info new file mode 100644 index 000000000000..8296bc56a6b3 --- /dev/null +++ b/desktop/emwm/emwm.info @@ -0,0 +1,10 @@ +PRGNAM="emwm" +VERSION="1.0" +HOMEPAGE="https://fastestcode.org/emwm.html" +DOWNLOAD="https://github.com/alx210/emwm/archive/v1.0/emwm-1.0.tar.gz" +MD5SUM="0fa21624a579d752f0ebbc7f5cb268d9" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="mwm-utils" +MAINTAINER="Damian Perticone" +EMAIL="mjolnirdam@gmail.com" diff --git a/desktop/emwm/slack-desc b/desktop/emwm/slack-desc new file mode 100644 index 000000000000..4c6a720a5a96 --- /dev/null +++ b/desktop/emwm/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------------------------------------------------------| +emwm: emwm (enhanced motif window manager) +emwm: +emwm: Emwm is a fork of the Motif Window Manager with fixes +emwm: and enhancements. +emwm: +emwm: +emwm: +emwm: +emwm: +emwm: Home: https://fastestcode.org/misc/emwm-guide.html +emwm: diff --git a/desktop/emwm/xinitrc.emwm b/desktop/emwm/xinitrc.emwm new file mode 100644 index 000000000000..ed0fc7913d3f --- /dev/null +++ b/desktop/emwm/xinitrc.emwm @@ -0,0 +1,33 @@ +#!/bin/sh +# $XConsortium: xinitrc.cpp,v 1.4 91/08/22 11:41:34 rws Exp $ + +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 + +# Start the window manager: +if [ -z "$DESKTOP_SESSION" -a -x /usr/bin/ck-launch-session ]; then + exec ck-launch-session /usr/bin/xmsm +else + exec /usr/bin/xmsm +fi + |