diff options
Diffstat (limited to 'academic')
-rw-r--r-- | academic/qalculate-kde/README | 6 | ||||
-rw-r--r-- | academic/qalculate-kde/doinst.sh | 4 | ||||
-rw-r--r-- | academic/qalculate-kde/qalculate-kde.SlackBuild | 56 | ||||
-rw-r--r-- | academic/qalculate-kde/qalculate-kde.info | 8 | ||||
-rw-r--r-- | academic/qalculate-kde/slack-desc | 19 |
5 files changed, 93 insertions, 0 deletions
diff --git a/academic/qalculate-kde/README b/academic/qalculate-kde/README new file mode 100644 index 0000000000..fffddc78c8 --- /dev/null +++ b/academic/qalculate-kde/README @@ -0,0 +1,6 @@ +Qalculate! is a multi-purpose desktop calculator for GNU/Linux. It is small +and simple to use but with much power and versatility underneath. Features +include customizable functions, units, arbitrary precision, plotting, and a +user-friendly interface (KDE or GTK+). + +Requires CLN and libqalculate, both of which are available from SlackBuilds.org diff --git a/academic/qalculate-kde/doinst.sh b/academic/qalculate-kde/doinst.sh new file mode 100644 index 0000000000..eec7ae1d81 --- /dev/null +++ b/academic/qalculate-kde/doinst.sh @@ -0,0 +1,4 @@ +if [ -x usr/bin/update-desktop-database ]; then + usr/bin/update-desktop-database usr/share/applications >/dev/null 2>&1 +fi + diff --git a/academic/qalculate-kde/qalculate-kde.SlackBuild b/academic/qalculate-kde/qalculate-kde.SlackBuild new file mode 100644 index 0000000000..5ff535ce29 --- /dev/null +++ b/academic/qalculate-kde/qalculate-kde.SlackBuild @@ -0,0 +1,56 @@ +#!/bin/sh + +# Slackware build script for qalculate-kde +# Original Script (http://www.slackbuilds.org/template.SlackBuild) +# Mangled by Nelson Milum (truthfatal@gmail.com) + +set -e + +PRGNAM=qalculate-kde +VERSION=0.9.6 +ARCH=${ARCH:-i486} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +DOCUMENTATION="AUTHORS COPYING ChangeLog INSTALL NEWS README TODO" + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" +fi + +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 . +chmod -R u+w,go+r-w,a-s . + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure \ +--prefix=/usr \ +--sysconfdir=/etc \ +--localstatedir=/var \ +--mandir=/usr/man + +make +make install-strip DESTDIR=$PKG + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a $DOCUMENTATION $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.tgz diff --git a/academic/qalculate-kde/qalculate-kde.info b/academic/qalculate-kde/qalculate-kde.info new file mode 100644 index 0000000000..3abcab200e --- /dev/null +++ b/academic/qalculate-kde/qalculate-kde.info @@ -0,0 +1,8 @@ +PRGNAM="qalculate-kde" +VERSION="0.9.6" +HOMEPAGE="http://qalculate.sourceforge.net/index.html" +DOWNLOAD="http://downloads.sourceforge.net/qalculate/qalculate-kde-0.9.6.tar.gz" +MD5SUM="2d41dc887ad3cf5de29ba4d570de263a" +MAINTAINER="Nelson Milum" +EMAIL="truthfatal@gmail.com" +APPROVED="rworkman" diff --git a/academic/qalculate-kde/slack-desc b/academic/qalculate-kde/slack-desc new file mode 100644 index 0000000000..e2adaf05e1 --- /dev/null +++ b/academic/qalculate-kde/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----------------------------------------------| +qalculate-kde: qalculate-kde (The Ultimate Desktop Calculator!) +qalculate-kde: +qalculate-kde: Qalculate! is a multi-purpose desktop calculator for Linux. +qalculate-kde: It is small and simple to use but with much power and +qalculate-kde: versatility underneath. Features include customizable +qalculate-kde: functions, units, arbitrary precision, plotting, and a +qalculate-kde: user-friendly interface. +qalculate-kde: +qalculate-kde: +qalculate-kde: +qalculate-kde: |