aboutsummaryrefslogtreecommitdiff
path: root/business
diff options
context:
space:
mode:
authorVincent Batts <vbatts@hashbangbash.com>2010-05-13 00:57:34 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-13 00:57:34 +0200
commit1c920eb13abe4ac340c6ca2c410c724eaf4159b1 (patch)
tree2adcf3e240d6e54a865685b66592b57ef10bc66f /business
parentb85ca6c5a998685631293a9ca60bc218cab7d207 (diff)
business/skrooge: Added to 13.0 repository
Diffstat (limited to 'business')
-rw-r--r--business/skrooge/README3
-rw-r--r--business/skrooge/doinst.sh14
-rw-r--r--business/skrooge/skrooge.SlackBuild114
-rw-r--r--business/skrooge/skrooge.info10
-rw-r--r--business/skrooge/slack-desc19
5 files changed, 160 insertions, 0 deletions
diff --git a/business/skrooge/README b/business/skrooge/README
new file mode 100644
index 000000000000..b7005c92332e
--- /dev/null
+++ b/business/skrooge/README
@@ -0,0 +1,3 @@
+skrooge (KDE4 Finance Application)
+
+This requires libofx.
diff --git a/business/skrooge/doinst.sh b/business/skrooge/doinst.sh
new file mode 100644
index 000000000000..c105be6686fc
--- /dev/null
+++ b/business/skrooge/doinst.sh
@@ -0,0 +1,14 @@
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
+fi
+
+if [ -x /usr/bin/update-mime-database ]; then
+ /usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1
+fi
+
+if [ -e usr/share/icons/oxygen/icon-theme.cache ]; then
+ if [ -x /usr/bin/gtk-update-icon-cache ]; then
+ /usr/bin/gtk-update-icon-cache usr/share/icons/oxygen >/dev/null 2>&1
+ fi
+fi
+
diff --git a/business/skrooge/skrooge.SlackBuild b/business/skrooge/skrooge.SlackBuild
new file mode 100644
index 000000000000..da0de0c436f0
--- /dev/null
+++ b/business/skrooge/skrooge.SlackBuild
@@ -0,0 +1,114 @@
+#!/bin/sh
+
+# Copyright 2009 Vincent Batts, http://hashbangbash.com/
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script 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.
+
+PRGNAM=skrooge
+VERSION=${VERSION:-0.5.2}
+ARCH=${ARCH:-i486}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i486" ]; then
+ export SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ export LIBDIRSUFFIX=""
+elif [ "$ARCH" = "s390" ]; then
+ export SLKCFLAGS="-O2"
+ export LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ export SLKCFLAGS="-O2 -fPIC"
+ export LIBDIRSUFFIX="64"
+elif [ "$ARCH" = "arm" ]; then
+ export SLKCFLAGS="-O2 -march=armv4 -mtune=xscale"
+ export LIBDIRSUFFIX=""
+elif [ "$ARCH" = "armel" ]; then
+ export SLKCFLAGS="-O2 -march=armv4t"
+ export LIBDIRSUFFIX=""
+fi
+
+# Additional cmake flags that are spanned across the KDE modules
+export KDE_OPT_ARGS=" -DKDE4_ENABLE_FINAL=\"ON\" -DSITE=\"slackbuilds.org\" "
+
+# Avoid a version number in .la files:
+if [ -d /usr/lib${LIBDIRSUFFIX}/qt ]; then
+ QTDIR=/usr/lib${LIBDIRSUFFIX}/qt
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG/usr $OUTPUT
+cd $TMP
+# Weird. tar alone won't extract this for me... It seems that the tar
+# archive was gzip'd, then gzip'd again, but renamed with a single
+# tar.gz suffix instead of tar.gz.gz, and tar barfs on it...
+gzip -dc $CWD/$PRGNAM-$VERSION.tar.gz > $TMP/$PRGNAM-$VERSION.tar.gz
+tar xvf $TMP/$PRGNAM-$VERSION.tar.gz && rm -f $TMP/$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 {} \;
+
+mkdir -p build
+cd build
+ cmake \
+ $KDE_OPT_ARGS \
+ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DMAN_INSTALL_DIR=/usr/man \
+ -DSYSCONF_INSTALL_DIR=/etc/kde \
+ -DLIB_SUFFIX=${LIBDIRSUFFIX} \
+ ..
+ make
+ make install DESTDIR=$PKG
+cd -
+
+if [ -d $PKG/usr/man ]; then
+ gzip -9 $PKG/usr/man/man?/*
+fi
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a COPYING* $PKG/usr/doc/$PRGNAM-$VERSION
+
+( cd $PKG
+ 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 || true
+)
+
+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/business/skrooge/skrooge.info b/business/skrooge/skrooge.info
new file mode 100644
index 000000000000..eda1b07d0077
--- /dev/null
+++ b/business/skrooge/skrooge.info
@@ -0,0 +1,10 @@
+PRGNAM="skrooge"
+VERSION="0.5.2"
+HOMEPAGE="http://extragear.kde.org/apps/skrooge/"
+DOWNLOAD="http://websvn.kde.org/*checkout*/tags/skrooge/0.5.2/skrooge-0.5.2.tar.gz"
+MD5SUM="52887f432cea1fa9d611af971c1048b7"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+MAINTAINER="Vincent Batts"
+EMAIL="vbatts@hashbangbash.com"
+APPROVED="rworkman"
diff --git a/business/skrooge/slack-desc b/business/skrooge/slack-desc
new file mode 100644
index 000000000000..a0d9086f8e69
--- /dev/null
+++ b/business/skrooge/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------------------------------------------------------|
+skrooge: skrooge ( KDE4 Finance Application )
+skrooge:
+skrooge: Skrooge is a personal finances manager for KDE4,
+skrooge: aiming at being simple and intuitive.
+skrooge:
+skrooge: Homepage: http://extragear.kde.org/apps/skrooge/
+skrooge:
+skrooge:
+skrooge:
+skrooge:
+skrooge: