diff options
author | Marcel Saegebarth <marc@mos6581.de> | 2012-05-29 19:12:58 -0400 |
---|---|---|
committer | Erik Hanson <erik@slackbuilds.org> | 2012-06-03 15:21:11 -0500 |
commit | a414bf3561f411b1014803e7b6f7cf59f96653f8 (patch) | |
tree | 37204ba99c65fff5772092695e2233fe01b5d3e0 /misc/dvtm | |
parent | 03267849a134325d1af141dd67ac576072619723 (diff) | |
download | slackbuilds-a414bf3561f411b1014803e7b6f7cf59f96653f8.tar.gz |
misc/dvtm: Added (Tiling window management for the console)
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'misc/dvtm')
-rw-r--r-- | misc/dvtm/README | 4 | ||||
-rw-r--r-- | misc/dvtm/dvtm.SlackBuild | 89 | ||||
-rw-r--r-- | misc/dvtm/dvtm.info | 10 | ||||
-rw-r--r-- | misc/dvtm/slack-desc | 19 |
4 files changed, 122 insertions, 0 deletions
diff --git a/misc/dvtm/README b/misc/dvtm/README new file mode 100644 index 0000000000..47aad9e365 --- /dev/null +++ b/misc/dvtm/README @@ -0,0 +1,4 @@ +dvtm brings the concept of tiling window management, popularized by +X11-window managers like dwm to the console. As a console window manager it +tries to make it easy to work with multiple console based programs like vim, +mutt, cmus or irssi. diff --git a/misc/dvtm/dvtm.SlackBuild b/misc/dvtm/dvtm.SlackBuild new file mode 100644 index 0000000000..99880aac51 --- /dev/null +++ b/misc/dvtm/dvtm.SlackBuild @@ -0,0 +1,89 @@ +#!/bin/sh + +# SlackBuild script for "dvtm". +# Copyright 2011 Marcel Saegebarth <marc@mos6581.de> +# All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are +# met: +# +# * Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +# "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 COPYRIGHT +# OWNER OR CONTRIBUTORS 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=dvtm +VERSION=0.7 +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 +rm -rf $TMP/$PRGNAM-$VERSION +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +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 {} \; + +CFLAGS="$SLKCFLAGS" \ +LDFLAGS="-L/usr/lib${LIBDIRSUFFIX}" \ +make +make install DESTDIR=$PKG PREFIX=/usr MANPREFIX=/usr/man + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a README LICENSE \ + $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +find $PKG/usr/man/man1 -type f -name "*.?" -exec gzip -9f {} \; + +mkdir $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/misc/dvtm/dvtm.info b/misc/dvtm/dvtm.info new file mode 100644 index 0000000000..9e13f17051 --- /dev/null +++ b/misc/dvtm/dvtm.info @@ -0,0 +1,10 @@ +PRGNAM="dvtm" +VERSION="0.7" +HOMEPAGE="http://www.brain-dump.org/projects/dvtm/" +DOWNLOAD="http://www.brain-dump.org/projects/dvtm/dvtm-0.7.tar.gz" +MD5SUM="d8ef63bad5b48324ad040630c51a1c26" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +MAINTAINER="Marcel Saegebarth" +EMAIL="marc@mos6581.de" +APPROVED="dsomero" diff --git a/misc/dvtm/slack-desc b/misc/dvtm/slack-desc new file mode 100644 index 0000000000..0892d92587 --- /dev/null +++ b/misc/dvtm/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 ':'. + + |-----handy-ruler------------------------------------------------------| +dvtm: dvtm (Tiling window management for the console) +dvtm: +dvtm: dvtm brings the concept of tiling window management, popularized by +dvtm: X11-window managers like dwm to the console. As a console window +dvtm: manager it tries to make it easy to work with multiple console based +dvtm: programs like vim, mutt, cmus or irssi. +dvtm: +dvtm: Homepage: http://www.brain-dump.org/projects/dvtm/ +dvtm: +dvtm: +dvtm: |