LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 02-26-2011, 10:18 PM   #1
Mol_Bolom
Member
 
Registered: Nov 2008
Location: S.W. Kansas
Distribution: Slackware64 14.0
Posts: 219
Blog Entries: 2

Rep: Reputation: 41
Opinion on Slackbuild script for Echinus window manager.


Changes :

Echinus 0.4.9

Oct 24, 2011
Slackware 13.37

Slackbuild : 16d0547ea6a2aec3cbae2a03153c434b echinus.tar.gz


------------------------------------------------------------------------------------------------------------------

<Old thread information>


<Edit> Noticed OPTS isn't used, so am working on learning how to use diff, and checking a few other things out with the script.
<Edit 2>
Added a patch for including OPTS. Which now the code blocks in this message are not the same as the download.
Cleaned up the script some by using CONF rather than sed.
</2 tidE>
<Edit 3>
Included Tom's copyright for his dwm slackbuild script.
Added a makeshift info file, primarily for the md5sum.
</3 tidE>


Curious if this looks ok. Since the Makefile installed odd directories I used a few sed's to change the Makefile and config.mk as well as modified the echinusrc file. (Using the dwm slackbuild as a template).

echinus.tar.gz (See Edit 2) [ md5sum 05f5b9eda3c13406d8681bb742b5f304 ]

http://plhk.ru/ (Echinus' home) [md5sum 7527d9aa0d19207780ca13dfff65eb6a]

<Edit 4>
From the README
Quote:
3.About panels and pagers
-------------------------

Echinus supports some parts of EWMH, so if the author of the pager knows
what this magical letters mean it *should* work fine.

Known to work:
fbpanel
ipager
ourico

Known to NOT work:
pypanel
I've been testing echinus with pcmanfm --desktop and lxpanel, so far I haven't seen any problems. At least on Slackware 13.1. Don't know about any other versions of pcmanfm and lxpanel not on slackbuilds.org.
<4 tidE>


Slackbuild
Code:
#!/bin/sh



PRGNAM=echinus
VERSION=${VERSION:-0.4.4}
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}

PREFIX=/usr

CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}

INSTALL="/bin/ginstall -o root -g root"

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"
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

mv config.mk config.mk-old
mv echinusrc echinusrc-old
mv Makefile Makefile-old
sed 's/\/examples\//\//' config.mk-old > config.mk
sed "s_.pixmap: _.pixmap: $PREFIX\/share\/echinus\/_g" echinusrc-old > echinusrc
sed "s_\/share\/doc\/echinus_\/doc\/'$PRGNAM-$VERSION'_g" Makefile-old > Makefile

make install \
  OPTS="$SLKCFLAGS" \
  PREFIX=/usr \
  MANPREFIX=/usr/man \
  X11INC=/usr/include/X11 \
  X11LIB=/usr/lib${LIBDIRSUFFIX}/X11 \
  DESTDIR=$PKG

( cd $PKG
  find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
    xargs strip --strip-unneeded 2> /dev/null || true
  find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
    xargs strip --strip-unneeded 2> /dev/null || true
)

( cd $PKG/usr/man
  find . -type f -exec gzip -9 {} \;
  for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
)

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}
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 ':'.

   |-----handy-ruler--------------------------------------------------------|
echinus: echinus                              
echinus:
echinus: echinus is a simple and lightweight tiling window manager for x similar
echinus: to dwm except it can have windows with close, minimize, and maximize   
echinus: buttons and has a simple config file.
echinus:
echinus:
echinus:
echinus:
echinus:
echinus: Homepage: http://plhk.ru

Last edited by Mol_Bolom; 10-24-2011 at 08:46 AM. Reason: changed directory
 
Old 02-27-2011, 01:30 AM   #2
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,749

Rep: Reputation: 461Reputation: 461Reputation: 461Reputation: 461Reputation: 461
The name doesn't match in theslack-desc file: 'dwm:' should be 'echinus:'
 
Old 02-27-2011, 01:52 AM   #3
Mol_Bolom
Member
 
Registered: Nov 2008
Location: S.W. Kansas
Distribution: Slackware64 14.0
Posts: 219
Blog Entries: 2

Original Poster
Rep: Reputation: 41
Quote:
Originally Posted by gnashley View Post
The name doesn't match in theslack-desc file: 'dwm:' should be 'echinus:'
Thanks. Should be fixed now.
 
Old 02-27-2011, 12:35 PM   #4
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,202

Rep: Reputation: 291Reputation: 291Reputation: 291
The ARCH line has been superseded in the sbo templates by this:

Code:
# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
  case "$( uname -m )" in
    i?86) ARCH=i486 ;;
    arm*) ARCH=arm ;;
    # Unless $ARCH is already set, use uname -m for all other archs:
       *) ARCH=$( uname -m ) ;;
  esac
fi
Which takes account for other build systems than plain old x86. Have a look at the templates here:

http://slackbuilds.org/templates/



Quote:
mv config.mk config.mk-old
mv echinusrc echinusrc-old
mv Makefile Makefile-old
sed 's/\/examples\//\//' config.mk-old > config.mk
etc..
All the mv's are unnecessary, use sed's -i flag for 'in place' and delete the mv's:

Code:
sed -i 's/\/examples\//\//' config.mk
etc
 
Old 02-27-2011, 03:53 PM   #5
Mol_Bolom
Member
 
Registered: Nov 2008
Location: S.W. Kansas
Distribution: Slackware64 14.0
Posts: 219
Blog Entries: 2

Original Poster
Rep: Reputation: 41
Quote:
Originally Posted by dive View Post
The ARCH line has been superseded in the sbo templates by this:

Code:
# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
  case "$( uname -m )" in
    i?86) ARCH=i486 ;;
    arm*) ARCH=arm ;;
    # Unless $ARCH is already set, use uname -m for all other archs:
       *) ARCH=$( uname -m ) ;;
  esac
fi
Which takes account for other build systems than plain old x86. Have a look at the templates here:

http://slackbuilds.org/templates/
Thanks, had been making changes from the first template there earlier today, but happened to have missed that part,


Quote:
All the mv's are unnecessary, use sed's -i flag for 'in place' and delete the mv's:

Code:
sed -i 's/\/examples\//\//' config.mk
etc
Fixed as well. The download has been updated above.
 
Old 03-23-2011, 11:06 AM   #6
Mol_Bolom
Member
 
Registered: Nov 2008
Location: S.W. Kansas
Distribution: Slackware64 14.0
Posts: 219
Blog Entries: 2

Original Poster
Rep: Reputation: 41
Version 0.4.7

Website: http://plhk.ru/

Slackbuild : 43c5e2fe7a92bdcbf375da02d1da565b echinus.tar.gz

Echinus with Audacity and urxvt running.
Echinus with two urxvt's running with vifm, one in red for root, the other for normal user.

Last edited by Mol_Bolom; 08-19-2011 at 02:47 PM. Reason: New Version
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Awesome Window manager ~ resize window key bindings do not work. bubnoff Linux - Desktop 0 12-23-2010 01:08 PM
problem with conky and echinus PhoenixAndThor Linux - Desktop 3 07-28-2010 09:25 AM
Beryl Window Manager / Emerald Theme Manager Not Changing With ATi Drivers. Z3R0o Linux - Desktop 2 01-06-2007 11:23 PM
What's the best X-Window System window manager in your opinion? t3gah Linux - Software 9 12-16-2006 10:10 PM
the best file manager in your opinion Brain Drop Linux - Software 9 07-17-2003 09:29 PM


All times are GMT -5. The time now is 04:38 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration