diff options
-rw-r--r-- | desktop/wmname/README | 8 | ||||
-rw-r--r-- | desktop/wmname/slack-desc | 18 | ||||
-rw-r--r-- | desktop/wmname/wmname.SlackBuild | 74 | ||||
-rw-r--r-- | desktop/wmname/wmname.info | 10 |
4 files changed, 110 insertions, 0 deletions
diff --git a/desktop/wmname/README b/desktop/wmname/README new file mode 100644 index 0000000000000..8963625b4cda0 --- /dev/null +++ b/desktop/wmname/README @@ -0,0 +1,8 @@ +wmname prints/sets the window manager name property of the root window +similar to how hostname(1) behaves. + +wmname is a nice utility to fix problems with JDK versions and other broken +programs assuming a reparenting window manager for instance. + +Run 'wmname' to print the current WM name. Run 'wmname <name>' to set it. +This is pretty much similiar to hostname(1). diff --git a/desktop/wmname/slack-desc b/desktop/wmname/slack-desc new file mode 100644 index 0000000000000..e6cb718d70d6c --- /dev/null +++ b/desktop/wmname/slack-desc @@ -0,0 +1,18 @@ +# 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------------------------------------------------------| +wmname: wmname (print/set the window manager name property) +wmname: +wmname: wmname prints/sets the window manager name property of the root window +wmname: similar to how hostname(1) behaves. It is a nice utility to fix +wmname: problems with JDK versions and other broken programs assuming a +wmname: reparenting window manager for instance. +wmname: +wmname: +wmname: +wmname: +wmname: http://tools.suckless.org/wmname diff --git a/desktop/wmname/wmname.SlackBuild b/desktop/wmname/wmname.SlackBuild new file mode 100644 index 0000000000000..b598e08ed23cc --- /dev/null +++ b/desktop/wmname/wmname.SlackBuild @@ -0,0 +1,74 @@ +#!/bin/sh + +# Slackware build script for wmname + +# Written by Arvydas Sidorenko (asido4@gmail.com) + +PRGNAM=wmname +VERSION=${VERSION:-0.1} +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 xvf $CWD/$PRGNAM-$VERSION.tar.gz +cd $PRGNAM-$VERSION +chown -R root:root . +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 {} \; + +# Accept our CFLAGS +sed "/^CFLAGS/s/=/+=/" -i config.mk + +CFLAGS="$SLKCFLAGS" \ + make +make install PREFIX=/usr DESTDIR=$PKG + +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/usr/doc/$PRGNAM-$VERSION +cp -a \ + LICENSE README \ + $PKG/usr/doc/$PRGNAM-$VERSION +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} diff --git a/desktop/wmname/wmname.info b/desktop/wmname/wmname.info new file mode 100644 index 0000000000000..2e03918b58761 --- /dev/null +++ b/desktop/wmname/wmname.info @@ -0,0 +1,10 @@ +PRGNAM="wmname" +VERSION="0.1" +HOMEPAGE="http://tools.suckless.org/wmname" +DOWNLOAD="http://dl.suckless.org/tools/wmname-0.1.tar.gz" +MD5SUM="6903d299f84d335e529fbd2c1d6e49fe" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +MAINTAINER="Arvydas Sidorenko" +EMAIL="asido4@gmail.com" +APPROVED="Niels Horn" |