LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   EMWM slackbuild for current (https://www.linuxquestions.org/questions/slackware-14/emwm-slackbuild-for-current-4175705795/)

adcdam 01-03-2022 08:27 PM

EMWM slackbuild for current
 
HI Jeebizz wanted a EMWM slackbuild so i made the two slackbuilds
i didnt test them but they build fine perhaps jeebizz can test them.

https://fastestcode.org/emwm.html
https://sourceforge.net/projects/emwm/
Download the two sources from here https://sourceforge.net/projects/emwm/files/
put them in a directory in your home for example home/youruser/EMWM
inside the directory
extract the two source code files: tar -Jxvf emwm-src-1.0.tar.xz
tar -Jxvf emwm-utils-src-1.0.tar.xz

remame the extracted source emwm-src-1.0 to EMWM-1.0
mv emwm-src-1.0 EMWM-1.0
compress to tar.gz:
tar -czvf EMWM-1.0.tar.gz EMWM-1.0
that would give a EMWM-1.0.tar.gz file

do the same for the other source
mv emwm-utils-src-1.0 EMWM-utils-1.0
tar -czvf EMWM-utils-1.0.tar.gz EMWM-utils-1.0
make the slackbuild executable
chmod +x EMWM.SlackBuild
chmod +x EMWM-utils.SlackBuild
run the slackbuild:
as root
./EMWM.SlackBuild

EMWM.SlackBuild

Code:

#!/bin/bash

# Slackware build script for EMWM

# Copyright 2021 adcdam 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.
#
# |-----------------------------------------------------------------| #

PRGNAM=EMWM               
VERSION=${VERSION:-1.0}       
BUILD=${BUILD:-1}
TAG=${TAG:-_adcdam}               

# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
  case "$( uname -m )" in
    i?86) ARCH=i586 ;;
    arm*) ARCH=arm ;;
      *) ARCH=$( uname -m ) ;;
  esac
fi

CWD=$(pwd)
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" \

# Compile the application and install it into the $PKG directory
make
cd src
install -Dm 775 emwm -t $PKG/usr/bin/
install -Dm 664 emwm.1 -t $PKG/usr/man/man1
install -Dm 664 system.emwmrc -t  $PKG/etc/X11
mv Emwm.ad Emwm
install -Dm 664 Emwm -t $PKG/etc/X11/app-defaults

cd ..

# Strip binaries and libraries - this can be done with 'make install-strip'
# in many source trees, and that's usually acceptable if so, but if not,
# use this:
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

mkdir -p $PKG/etc/X11/xinit
cat $CWD/xinitrc.EMWM > $PKG/etc/X11/xinit/xinitrc.EMWM
chmod 0755 $PKG/etc/X11/xinit/xinitrc.EMWM

# Compress man pages
# If the man pages are installed to /usr/share/man instead, you'll need to either
# add the --mandir=/usr/man flag to configure or move them manually after the
# make install process is run.
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

# Remove perllocal.pod and other special files that don't need to be installed,
# as they will overwrite what's already on the system.  If this is not needed,
# remove it from the script.
# Remove 'special' files
find $PKG -name perllocal.pod \
  -o -name ".packlist" \
  -o -name "*.bs" \
  | xargs rm -f

# Copy the slack-desc (and a custom doinst.sh if necessary) into ./install
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}


slack-desc

Code:

# 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 (MWM fork).
EMWM
EMWM:Supports Xinerama, Xrandr, UTF-8/Xft,
EMWM:
EMWM:and relevant Extended Window Manager Hints (EWMH) 
EMWM:Webpage: https://fastestcode.org/misc/emwm-guide.html
EMWM:https://github.com/alx210/emwm
EMWM:https://sourceforge.net/projects/emwm
EMWM:
EMWM:

xinitrc.EMWM

Code:

#!/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/emwm
else
  exec /usr/bin/emwm
fi

install the package that is created in /tmp as root with installpkg
now do the same with the other slackbuild
make it executable run it and install

EMWM-utils.SlackBuild


Code:

#!/bin/sh

# Slackware build script for EMWM-utils

# Copyright 2021 adcdam 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.
#
# |-----------------------------------------------------------------| #

PRGNAM=EMWM-utils               
VERSION=${VERSION:-1.0}       
BUILD=${BUILD:-1}
TAG=${TAG:-_adcdam}               

# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
  case "$( uname -m )" in
    i?86) ARCH=i586 ;;
    arm*) ARCH=arm ;;
      *) ARCH=$( uname -m ) ;;
  esac
fi

CWD=$(pwd)
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" \

# Compile the application and install it into the $PKG directory
make
cd src
install -Dm 775 xmsession -t $PKG/usr/bin
install -Dm 775 xmtoolbox -t $PKG/usr/bin
install -Dm 4775 xmsm -t $PKG/usr/bin
install -Dm 664 xmtoolbox.1 -t $PKG/usr/man/man1
install -Dm 664 xmsm.1 -t $PKG/usr/man/man1
mv XmSm.ad XmSm
install -Dm 664 XmSm -t $PKG/etc/X11/app-defaults
mv XmToolbox.ad XmToolbox
install -Dm 664 XmToolbox -t $PKG/etc/X11/app-defaults
install -Dm 664 toolboxrc -t $PKG/etc/X11

cd ..

# Strip binaries and libraries - this can be done with 'make install-strip'
# in many source trees, and that's usually acceptable if so, but if not,
# use this:
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

# Compress man pages
# If the man pages are installed to /usr/share/man instead, you'll need to either
# add the --mandir=/usr/man flag to configure or move them manually after the
# make install process is run.
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

# Remove perllocal.pod and other special files that don't need to be installed,
# as they will overwrite what's already on the system.  If this is not needed,
# remove it from the script.
# Remove 'special' files
find $PKG -name perllocal.pod \
  -o -name ".packlist" \
  -o -name "*.bs" \
  | xargs rm -f

# Copy the slack-desc (and a custom doinst.sh if necessary) into ./install
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}

slack-desc

Code:

# 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-utils:
EMWM-utils: A simple session manager and a /toolchest/ like launcher
EMWM-utils:
EMWM-utils: for EMWM
EMWM-utils:
EMWM-utils: 
EMWM-utils:https://sourceforge.net/projects/emwm/
EMWM-utils:
EMWM-utils:
EMWM-utils:
EMWM-utils:


Jeebizz 01-03-2022 11:21 PM

It didn't compile:
Code:

root@vslack:/home/slacker/emwm/emwm-src-1.0# ./EMWM.SlackBuild
emwm-src-1.0/
emwm-src-1.0/COPYING
emwm-src-1.0/Makefile
emwm-src-1.0/README
emwm-src-1.0/mf/
emwm-src-1.0/mf/Makefile.FreeBSD
emwm-src-1.0/mf/Makefile.Linux
emwm-src-1.0/mf/Makefile.OpenBSD
emwm-src-1.0/mf/Makefile.SunOS
emwm-src-1.0/mf/Makefile.Tribblix
emwm-src-1.0/mf/Makefile.generic
emwm-src-1.0/src/
emwm-src-1.0/src/Emwm.ad
emwm-src-1.0/src/Mwm.msg
emwm-src-1.0/src/WmBitmap.h
emwm-src-1.0/src/WmCDInfo.c
emwm-src-1.0/src/WmCDInfo.h
emwm-src-1.0/src/WmCDecor.c
emwm-src-1.0/src/WmCDecor.h
emwm-src-1.0/src/WmCEvent.c
emwm-src-1.0/src/WmCEvent.h
emwm-src-1.0/src/WmCPlace.c
emwm-src-1.0/src/WmCPlace.h
emwm-src-1.0/src/WmCmd.c
emwm-src-1.0/src/WmCmd.h
emwm-src-1.0/src/WmColormap.c
emwm-src-1.0/src/WmColormap.h
emwm-src-1.0/src/WmDebug.h
emwm-src-1.0/src/WmError.c
emwm-src-1.0/src/WmError.h
emwm-src-1.0/src/WmEvent.c
emwm-src-1.0/src/WmEvent.h
emwm-src-1.0/src/WmEwmh.c
emwm-src-1.0/src/WmEwmh.h
emwm-src-1.0/src/WmFeedback.c
emwm-src-1.0/src/WmFeedback.h
emwm-src-1.0/src/WmFunction.c
emwm-src-1.0/src/WmFunction.h
emwm-src-1.0/src/WmGlobal.h
emwm-src-1.0/src/WmGraphics.c
emwm-src-1.0/src/WmGraphics.h
emwm-src-1.0/src/WmIBitmap.h
emwm-src-1.0/src/WmICCC.h
emwm-src-1.0/src/WmIDecor.c
emwm-src-1.0/src/WmIDecor.h
emwm-src-1.0/src/WmIPlace.c
emwm-src-1.0/src/WmIPlace.h
emwm-src-1.0/src/WmIconBox.c
emwm-src-1.0/src/WmIconBox.h
emwm-src-1.0/src/WmImage.c
emwm-src-1.0/src/WmImage.h
emwm-src-1.0/src/WmInitWs.c
emwm-src-1.0/src/WmInitWs.h
emwm-src-1.0/src/WmKeyFocus.c
emwm-src-1.0/src/WmKeyFocus.h
emwm-src-1.0/src/WmMain.c
emwm-src-1.0/src/WmManage.c
emwm-src-1.0/src/WmManage.h
emwm-src-1.0/src/WmMenu.c
emwm-src-1.0/src/WmMenu.h
emwm-src-1.0/src/WmOL.h
emwm-src-1.0/src/WmProperty.c
emwm-src-1.0/src/WmProperty.h
emwm-src-1.0/src/WmProtocol.c
emwm-src-1.0/src/WmProtocol.h
emwm-src-1.0/src/WmResCvt.c
emwm-src-1.0/src/WmResCvt.h
emwm-src-1.0/src/WmResNames.h
emwm-src-1.0/src/WmResParse.c
emwm-src-1.0/src/WmResParse.h
emwm-src-1.0/src/WmResource.c
emwm-src-1.0/src/WmResource.h
emwm-src-1.0/src/WmSignal.c
emwm-src-1.0/src/WmSignal.h
emwm-src-1.0/src/WmWinConf.c
emwm-src-1.0/src/WmWinConf.h
emwm-src-1.0/src/WmWinInfo.c
emwm-src-1.0/src/WmWinInfo.h
emwm-src-1.0/src/WmWinList.c
emwm-src-1.0/src/WmWinList.h
emwm-src-1.0/src/WmWinState.c
emwm-src-1.0/src/WmWinState.h
emwm-src-1.0/src/WmWsm.c
emwm-src-1.0/src/WmWsm.h
emwm-src-1.0/src/WmWsmLib/
emwm-src-1.0/src/WmWsmLib/debug.c
emwm-src-1.0/src/WmWsmLib/disp.c
emwm-src-1.0/src/WmWsmLib/free.c
emwm-src-1.0/src/WmWsmLib/pack.c
emwm-src-1.0/src/WmWsmLib/recv.c
emwm-src-1.0/src/WmWsmLib/send.c
emwm-src-1.0/src/WmWsmLib/util.c
emwm-src-1.0/src/WmWsmLib/utm_send.c
emwm-src-1.0/src/WmWsmLib/utm_send.h
emwm-src-1.0/src/WmWsmLib/wsm_funcs.h
emwm-src-1.0/src/WmWsmLib/wsm_proto.h
emwm-src-1.0/src/WmXSMP.c
emwm-src-1.0/src/WmXSMP.h
emwm-src-1.0/src/WmXinerama.c
emwm-src-1.0/src/WmXinerama.h
emwm-src-1.0/src/Xm/
emwm-src-1.0/src/Xm/VirtKeysI.h
emwm-src-1.0/src/common.mf
emwm-src-1.0/src/emwm.1
emwm-src-1.0/src/system.emwmrc
./EMWM.SlackBuild: line 67: cd: EMWM-1.0: No such file or directory
root@vslack:/home/slacker/emwm/emwm-src-1.0#

Also instead of decompressing and recompressing to tar.gz , can't an argument just be passed to extract the .xz archive in the script?

From tar's manpage:
Quote:

-J, --xz filter the archive through xz

Jeebizz 01-03-2022 11:49 PM

Well I figured out what I did wrong and in the end it did compile , next trying emwm-utils...

Jeebizz 01-04-2022 12:11 AM

EMWM-Utils does not compile:
Code:

cc -O2 -Wall -I./Xm -I/usr/local/include  -DLARGECURSORS -DUNMAP_ON_RESTART -DNO_OL_COMPAT -DNO_MESSAGE_CATALOG -DRCDIR='"/etc/X11"'  -c -o WmWsmLib/recv.o WmWsmLib/recv.c
cc -O2 -Wall -I./Xm -I/usr/local/include  -DLARGECURSORS -DUNMAP_ON_RESTART -DNO_OL_COMPAT -DNO_MESSAGE_CATALOG -DRCDIR='"/etc/X11"'  -c -o WmWsmLib/send.o WmWsmLib/send.c
cc -O2 -Wall -I./Xm -I/usr/local/include  -DLARGECURSORS -DUNMAP_ON_RESTART -DNO_OL_COMPAT -DNO_MESSAGE_CATALOG -DRCDIR='"/etc/X11"'  -c -o WmWsmLib/util.o WmWsmLib/util.c
cc -O2 -Wall -I./Xm -I/usr/local/include  -DLARGECURSORS -DUNMAP_ON_RESTART -DNO_OL_COMPAT -DNO_MESSAGE_CATALOG -DRCDIR='"/etc/X11"'  -c -o WmWsmLib/utm_send.o WmWsmLib/utm_send.c
cc -L/usr/local/lib -o emwm WmCDInfo.o  WmCDecor.o      WmCEvent.o WmCPlace.o  WmColormap.o    WmError.o WmEvent.o    WmFeedback.o    WmFunction.o WmGraphics.o      WmIDecor.o      WmIPlace.o WmIconBox.o  WmKeyFocus.o    WmMain.o WmManage.o    WmProperty.o    WmResCvt.o WmResParse.o WmResource.o    WmSignal.o WmWinConf.o  WmWinInfo.o    WmWinList.o WmWinState.o        WmWsm.o        WmXSMP.o WmCmd.o        WmImage.o      WmInitWs.o WmMenu.o    WmProtocol.o    WmXinerama.o WmEwmh.o WmWsmLib/debug.o WmWsmLib/disp.o WmWsmLib/free.o WmWsmLib/pack.o WmWsmLib/recv.o WmWsmLib/send.o WmWsmLib/util.o WmWsmLib/utm_send.o -lm -lXm -lXt -lXext -lXrandr -lXinerama -lX11
make[1]: Leaving directory '/tmp/SBo/EMWM-utils-1.0/src'
install: cannot stat 'xmsession': No such file or directory
bash-5.1#


lancsuk 01-04-2022 03:38 AM

1 Attachment(s)
just a trifle

EMWM.SlackBuild

Code:

--- old/EMWM.SlackBuild        2022-01-04 09:24:01.205328076 +0000
+++ EMWM.SlackBuild        2022-01-04 09:20:54.530335731 +0000
@@ -25,6 +25,7 @@
 # |-----------------------------------------------------------------| #
 
 PRGNAM=EMWM               
+SRCNAM=emwm-src               
 VERSION=${VERSION:-1.0}       
 BUILD=${BUILD:-1}
 TAG=${TAG:-_adcdam}               
@@ -62,9 +63,9 @@
 rm -rf $PKG
 mkdir -p $TMP $PKG $OUTPUT
 cd $TMP
-rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
-cd $PRGNAM-$VERSION
+rm -rf $SRCNAM-$VERSION
+tar xvf $CWD/$SRCNAM-$VERSION.tar.xz
+cd $SRCNAM-$VERSION
 chown -R root:root .
 find -L . \
  \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \

EMWM-utils.SlackBuild

Code:

--- old/EMWM-utils.SlackBuild        2022-01-04 09:27:38.851319151 +0000
+++ EMWM-utils.SlackBuild        2022-01-04 09:21:31.327334222 +0000
@@ -25,6 +25,7 @@
 # |-----------------------------------------------------------------| #
 
 PRGNAM=EMWM-utils               
+SRCNAM=emwm-utils-src
 VERSION=${VERSION:-1.0}       
 BUILD=${BUILD:-1}
 TAG=${TAG:-_adcdam}               
@@ -62,9 +63,9 @@
 rm -rf $PKG
 mkdir -p $TMP $PKG $OUTPUT
 cd $TMP
-rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
-cd $PRGNAM-$VERSION
+rm -rf $SRCNAM-$VERSION
+tar xvf $CWD/$SRCNAM-$VERSION.tar.xz
+cd $SRCNAM-$VERSION
 chown -R root:root .
 find -L . \
  \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \


Jeebizz 01-04-2022 10:25 AM

Quote:

Originally Posted by lancsuk (Post 6314774)
just a trifle


What about the utils, did you try those? The sole reasons for wanting EMWM is that it is supposed to be easier to customize. I will try again later to recompile it - and if it does live up; then hopefully Pat might notice - and replace MWM with EMWM *fingers crossed*.

lancsuk 01-04-2022 11:47 AM

Quote:

Originally Posted by Jeebizz (Post 6314900)
What about the utils, did you try those? The sole reasons for wanting EMWM is that it is supposed to be easier to customize. I will try again later to recompile it - and if it does live up; then hopefully Pat might notice - and replace MWM with EMWM *fingers crossed*.

I have just built the packages and customized the root menu. Sadly I have no experience with mwm/emwm and I was surprised because I couldn't find any window decoration themes in cyberspace.

Jeebizz 01-04-2022 12:09 PM

Quote:

Originally Posted by lancsuk (Post 6314936)
I have just built the packages and customized the root menu. Sadly I have no experience with mwm/emwm and I was surprised because I couldn't find any window decoration themes in cyberspace.

I admit I don't know either - does it or can it utilize those types of files that CDE uses (can't remember the file extension) - but they are essentially code (not actual images), but it generates a 'backdrop', and some look kinda cool. Also I just wanted an easier way of tweaking the colors and such, because again tl;dr on the manual, and I couldn't find anything in the manpages for MWM as there was so much to go through.

Jeebizz 01-04-2022 12:13 PM

Also I am dumb, how do I update the slackbuilds for the utils?

adcdam 01-04-2022 01:14 PM

i think you made a mistake with EMWM-utils.Slackbuild it build fine, are you sure you use the right source? you can copy the EMWM-utils and EMWM-utils source code and slack-desc to another directory and run the slackbuild from there.

Jeebizz 01-04-2022 01:41 PM

1 Attachment(s)
You are right again - I have no excuse even if it was late last night - and I wasn't even drunk... It compiled now after redownloading the RIGHT file..... dopey me...again :doh: :p :redface:


Jeebizz 01-04-2022 01:50 PM

2 Attachment(s)
Well I am in EMWM......nothing different, and I even got the utils installed but nothing in the context menu on the utils ... sooo ........ yea my stupidity is rearing up again...Now what am I missing? :p


alnun 01-04-2022 02:22 PM

Has virtual desktops been aded to EMWM? Because that's the one thing stopping me from using EMWM right now. I recall the guy maintaining the fork said he was going to add it eventually.

Jeebizz 01-04-2022 02:38 PM

Quote:

Originally Posted by alnun (Post 6314969)
Has virtual desktops been aded to EMWM? Because that's the one thing stopping me from using EMWM right now. I recall the guy maintaining the fork said he was going to add it eventually.

From https://fastestcode.org/emwm-hist.txt , it does not look like it yet. Maybe try shooting him an email? *shrug*

Jeebizz 01-04-2022 02:42 PM

Although checking further - this implies it should support virtual desktops?

Quote:

https://fastestcode.org/misc/emwm-guide.html

Didn't MWM have multiple desktop/workspace support at some point in time?

MWM had it all along, and the code is still there, albeit currently disabled, because it is implemented on top of Sun's IPC. The old code can be eventually repurposed for an EWMH based implementation. Then again, while it was a desirable feature when all you had was a 14" CRT with 800x600 pixel resolution, with screen space available nowadays I personally don't care for it at all.


All times are GMT -5. The time now is 11:20 AM.