aboutsummaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
Diffstat (limited to 'desktop')
-rw-r--r--desktop/wmii/README3
-rw-r--r--desktop/wmii/wmii.SlackBuild67
-rw-r--r--desktop/wmii/wmii.info14
-rw-r--r--desktop/wmii/xinitrc.wmii4
4 files changed, 62 insertions, 26 deletions
diff --git a/desktop/wmii/README b/desktop/wmii/README
index 9d62750f4887e..052907cd3adff 100644
--- a/desktop/wmii/README
+++ b/desktop/wmii/README
@@ -7,4 +7,5 @@ with a new tagging approach. Its minimalist philosophy attempts to
not exceed 10.000 lines of code (including all shipped utilities and
libraries), to enforce simplicity and clarity.
-NOTE: This requires libixp and it is a good idea to install dmenu too.
+Note: wmii requires 'libixp','plan9port' and dmenu.
+All availiable at SlackBuilds.org.
diff --git a/desktop/wmii/wmii.SlackBuild b/desktop/wmii/wmii.SlackBuild
index 7e82401fdbe4f..c7171ff597ebe 100644
--- a/desktop/wmii/wmii.SlackBuild
+++ b/desktop/wmii/wmii.SlackBuild
@@ -1,16 +1,34 @@
#!/bin/sh
# Slackware build script for wmii
-# Written by eroc <eroc@linuxmail.org>
-# Thanks to selkfoster <selkfoster@gmail.com>
-# Modified by the SlackBuilds.org project
+# Copyright (c) 2008, Antonio Hernández Blas <hba.nihilismus@gmail.com>
+# All rights reserved.
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions are met:
+# 1.- Redistributions of source code 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.
+
+# Thanks to selkfoster <selkfoster@gmail.com>
PRGNAM=wmii
-VERSION=3.5.1
+VERSION=3.6
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
@@ -20,29 +38,44 @@ if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
fi
+set -e
+
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
-cd $TMP || exit 1
+cd $TMP
rm -rf $PRGNAM-$VERSION
-tar -xzvf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1
-cd $PRGNAM-$VERSION || exit 1
+tar -xzvf $CWD/$PRGNAM-$VERSION.tar.gz
+cd $PRGNAM-$VERSION
chown -R root:root .
-chmod -R a-s,u+rw,go-w .
+find . \
+ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
+ -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
+ -exec chmod 644 {} \;
# Fix the prefix, sysconfdir, and mandir
-sed -i s#'PREFIX = /usr/local'#'PREFIX = /usr'# config.mk || exit 1
-sed -i s#'CONFPREFIX = ${PREFIX}/etc'#'CONFPREFIX = /etc/X11'# config.mk || exit 1
-sed -i s#'MANPREFIX = ${PREFIX}/share/man'#'MANPREFIX = ${PREFIX}/man'# config.mk || exit 1
-# Fix the CFLAGS
-sed -i 's/CFLAGS = -Os /CFLAGS += /g' config.mk || exit 1
+sed -i \
+ -e 's:^PREFIX = /usr/local:PREFIX = /usr:' \
+ -e 's:^MAN = \${PREFIX}/share/man:MAN = /usr/man:' \
+ -e 's:^ETC = \${PREFIX}/etc:ETC = /etc/X11:' \
+ config.mk
+CFLAGS="$SLKCFLAGS" make
-CFLAGS="$SLKCFLAGS" make || exit 1
-make install DESTDIR=$PKG || exit 1
+# This is *needed* to install wmii under $PKG
+sed -i \
+ -e 's:^PREFIX = /usr:PREFIX = '${PKG}'/usr:' \
+ -e 's:^MAN = /usr/man:MAN = '${PKG}'/usr/man:' \
+ -e 's:^ETC = /etc/X11:ETC = '${PKG}'/etc/X11:' \
+ -e 's:^LIBIXP =.*:LIBIXP = /usr/lib/libixp.a:' \
+ config.mk
+make install
( cd $PKG
- find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
+ 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
)
@@ -55,7 +88,7 @@ mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a LICENSE README $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
-# xwmconfig is your friend.
+# Add wmii to xwmconfig's list
install -D -m 0755 $CWD/xinitrc.wmii $PKG/etc/X11/xinit/xinitrc.wmii
mkdir -p $PKG/install
diff --git a/desktop/wmii/wmii.info b/desktop/wmii/wmii.info
index cb51480f66838..85fa22a453d74 100644
--- a/desktop/wmii/wmii.info
+++ b/desktop/wmii/wmii.info
@@ -1,8 +1,8 @@
PRGNAM="wmii"
-VERSION="3.5.1"
-HOMEPAGE="http://wmii.suckless.org/"
-DOWNLOAD="http://suckless.org/download/wmii-3.5.1.tar.gz"
-MD5SUM="26705a7b59945b7d269921b45ac15cdf"
-MAINTAINER="eroc"
-EMAIL="eroc@linuxmail.org"
-APPROVED="rworkman"
+VERSION="3.6"
+HOMEPAGE="http://wmii.suckless.org"
+DOWNLOAD="http://code.suckless.org/dl/wmii/wmii-3.6.tar.gz"
+MD5SUM="9d17a09871fada998b4d989d9318bbf5"
+MAINTAINER="Antonio Hernández Blas"
+EMAIL="hba.nihilismus@gmail.com"
+APPROVED="David Somero"
diff --git a/desktop/wmii/xinitrc.wmii b/desktop/wmii/xinitrc.wmii
index 7e3746491611b..8d6372a83972c 100644
--- a/desktop/wmii/xinitrc.wmii
+++ b/desktop/wmii/xinitrc.wmii
@@ -25,4 +25,6 @@ if [ -f $usermodmap ]; then
fi
# Start the window manager:
-exec wmii
+until wmii; do
+ true
+done