From 89b5884dc3e8b01e94eb942c30cd9b49f7676d32 Mon Sep 17 00:00:00 2001 From: Jens Weber Date: Sun, 16 Dec 2012 17:42:16 -0500 Subject: desktop/quadkonsole4: Added (4 terminals in one) Signed-off-by: dsomero --- desktop/quadkonsole4/README | 1 + desktop/quadkonsole4/doinst.sh | 9 +++ desktop/quadkonsole4/quadkonsole4.SlackBuild | 87 ++++++++++++++++++++++++++++ desktop/quadkonsole4/quadkonsole4.info | 10 ++++ desktop/quadkonsole4/slack-desc | 19 ++++++ 5 files changed, 126 insertions(+) create mode 100644 desktop/quadkonsole4/README create mode 100644 desktop/quadkonsole4/doinst.sh create mode 100644 desktop/quadkonsole4/quadkonsole4.SlackBuild create mode 100644 desktop/quadkonsole4/quadkonsole4.info create mode 100644 desktop/quadkonsole4/slack-desc (limited to 'desktop/quadkonsole4') diff --git a/desktop/quadkonsole4/README b/desktop/quadkonsole4/README new file mode 100644 index 0000000000..af708f29d6 --- /dev/null +++ b/desktop/quadkonsole4/README @@ -0,0 +1 @@ + Quadkonsole4 - Grid of Konsole terminals diff --git a/desktop/quadkonsole4/doinst.sh b/desktop/quadkonsole4/doinst.sh new file mode 100644 index 0000000000..3e5691a052 --- /dev/null +++ b/desktop/quadkonsole4/doinst.sh @@ -0,0 +1,9 @@ +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 +fi + +if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then + if [ -x /usr/bin/gtk-update-icon-cache ]; then + /usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1 + fi +fi diff --git a/desktop/quadkonsole4/quadkonsole4.SlackBuild b/desktop/quadkonsole4/quadkonsole4.SlackBuild new file mode 100644 index 0000000000..e9426b5acc --- /dev/null +++ b/desktop/quadkonsole4/quadkonsole4.SlackBuild @@ -0,0 +1,87 @@ +#!/bin/sh +# Slackware build script for quadkonsole4 (quadkonsole4-0.4.4) +# Written by Jens Weber +# v 0.4.4; (jw) first version 20/08/2012 + +PRGNAM=quadkonsole4 +VERSION=${VERSION:-0.4.4} +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" +elif [ "$ARCH" = "armv7hl" ]; then + SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16" + LIBDIRSUFFIX="" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +set -eu + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 +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 {} \; + +# If we do not specify the correct QT_PLUGINS_DIR, then the application +# decides on using $QT4DIR/qt4/plugins instead. +mkdir -p build +cd build + cmake \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ + -DLIB_SUFFIX=${LIBDIRSUFFIX} \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DMAN_INSTALL_DIR=/usr/man \ + -DQT_PLUGINS_DIR=/usr/lib$LIBDIRSUFFIX/qt/plugins \ + .. + make + make install DESTDIR=$PKG +cd - + +find $PKG/usr/share/icons -type f -exec chmod 0644 {} \; + +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 ChangeLog INSTALL AUTHORS NEWS COPYING $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/quadkonsole4/quadkonsole4.info b/desktop/quadkonsole4/quadkonsole4.info new file mode 100644 index 0000000000..221cccc021 --- /dev/null +++ b/desktop/quadkonsole4/quadkonsole4.info @@ -0,0 +1,10 @@ +PRGNAM="quadkonsole4" +VERSION="0.4.4" +HOMEPAGE="http://kb.ccchl.de/quadkonsole4/" +DOWNLOAD="http://kb.ccchl.de/quadkonsole4/quadkonsole4-0.4.4.tar.bz2" +MD5SUM="542f406edcbd740672dd8d836b74edbe" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="" +MAINTAINER="Jens Weber" +EMAIL="jens@tuxane.com" diff --git a/desktop/quadkonsole4/slack-desc b/desktop/quadkonsole4/slack-desc new file mode 100644 index 0000000000..0f1faf7438 --- /dev/null +++ b/desktop/quadkonsole4/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 ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +quadkonsole4: Quadkonsole4 (4 terminals in one) +quadkonsole4: +quadkonsole4: Grid of Konsole terminals +quadkonsole4: +quadkonsole4: +quadkonsole4: +quadkonsole4: +quadkonsole4: +quadkonsole4: +quadkonsole4: +quadkonsole4: -- cgit v1.2.3