diff options
author | Mikko Värri <vmj@linuxbox.fi> | 2010-12-30 19:07:05 -0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-12-31 18:59:54 -0600 |
commit | 753e258778b6aef77d5debb63f3956a7704b3880 (patch) | |
tree | f312f70879bc1b8ece5728d6dc871afc437bd2bc /desktop/bashrun2 | |
parent | 74ef8f6797396a28dc6ae7ffecfc647c11a5736e (diff) |
desktop/bashrun2: Added (interactive bash application launcher)
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
Diffstat (limited to 'desktop/bashrun2')
-rw-r--r-- | desktop/bashrun2/README | 6 | ||||
-rw-r--r-- | desktop/bashrun2/bashrun2.SlackBuild | 84 | ||||
-rw-r--r-- | desktop/bashrun2/bashrun2.info | 10 | ||||
-rw-r--r-- | desktop/bashrun2/doinst.sh | 14 | ||||
-rw-r--r-- | desktop/bashrun2/slack-desc | 19 |
5 files changed, 133 insertions, 0 deletions
diff --git a/desktop/bashrun2/README b/desktop/bashrun2/README new file mode 100644 index 0000000000000..f16ff6b214ea9 --- /dev/null +++ b/desktop/bashrun2/README @@ -0,0 +1,6 @@ +bashrun2 adds application launching capabilities to interactive bash +sessions, suitable for use in a graphical user environment. In its +default setup, bashrun2 provides an application launcher in the +fashion of a simple run dialog by starting an interactive bash +session in a small xterm(1) terminal window (the builtin run-dialog +mode). diff --git a/desktop/bashrun2/bashrun2.SlackBuild b/desktop/bashrun2/bashrun2.SlackBuild new file mode 100644 index 0000000000000..fca034f8fa83a --- /dev/null +++ b/desktop/bashrun2/bashrun2.SlackBuild @@ -0,0 +1,84 @@ +#!/bin/sh + +# Slackware build script for bashrun2 + +# Written by Mikko Värri (vmj@linuxbox.fi) +# Public domain. + +PRGNAM=bashrun2 +VERSION=${VERSION:-0.1.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 {} \; + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/man \ + --build=$ARCH-slackware-linux + +make +make install-strip DESTDIR=$PKG + +mv $PKG/etc/xdg/bashrun2/bashrun2.rc $PKG/etc/xdg/bashrun2/bashrun2.rc.new + +find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +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 + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a AUTHORS COPYING ChangeLog INSTALL NEWS 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 +cat $CWD/doinst.sh > $PKG/install/doinst.sh + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/desktop/bashrun2/bashrun2.info b/desktop/bashrun2/bashrun2.info new file mode 100644 index 0000000000000..6cd9863031ac6 --- /dev/null +++ b/desktop/bashrun2/bashrun2.info @@ -0,0 +1,10 @@ +PRGNAM="bashrun2" +VERSION="0.1.1" +HOMEPAGE="http://code.google.com/p/bashrun2/" +DOWNLOAD="http://bashrun2.googlecode.com/files/bashrun2-0.1.1.tar.gz" +MD5SUM="7743be7e4501640ef695086efe35e6d0" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +MAINTAINER="Mikko Värri" +EMAIL="vmj@linuxbox.fi" +APPROVED="Niels Horn" diff --git a/desktop/bashrun2/doinst.sh b/desktop/bashrun2/doinst.sh new file mode 100644 index 0000000000000..ac45714e3dc8d --- /dev/null +++ b/desktop/bashrun2/doinst.sh @@ -0,0 +1,14 @@ +config() { + NEW="$1" + OLD="$(dirname $NEW)/$(basename $NEW .new)" + # If there's no config file by that name, mv it over: + if [ ! -r $OLD ]; then + mv $NEW $OLD + elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then + # toss the redundant copy + rm $NEW + fi + # Otherwise, we leave the .new copy for the admin to consider... +} + +config etc/xdg/bashrun2/bashrun2.rc.new diff --git a/desktop/bashrun2/slack-desc b/desktop/bashrun2/slack-desc new file mode 100644 index 0000000000000..c36a0862742ee --- /dev/null +++ b/desktop/bashrun2/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------------------------------------------------------| +bashrun2: bashrun2 (launch applications from interactive bash sessions) +bashrun2: +bashrun2: bashrun2 adds application launching capabilities to interactive bash +bashrun2: sessions, suitable for use in a graphical user environment. In its +bashrun2: default setup, bashrun2 provides an application launcher in the +bashrun2: fashion of a simple run dialog by starting an interactive bash +bashrun2: session in a small xterm(1) terminal window (the builtin run-dialog +bashrun2: mode). +bashrun2: +bashrun2: Homepage: http://code.google.com/p/bashrun2/ +bashrun2: |