From eaed7bcbb2c14a74e444d1544ec6e7c57ae3b64b Mon Sep 17 00:00:00 2001 From: Nelson Milum Date: Tue, 11 May 2010 20:00:55 +0200 Subject: libraries/libqalculate: Added to 12.0 repository --- libraries/libqalculate/README | 4 ++ libraries/libqalculate/libqalculate.SlackBuild | 59 ++++++++++++++++++++++++++ libraries/libqalculate/libqalculate.info | 8 ++++ libraries/libqalculate/slack-desc | 19 +++++++++ 4 files changed, 90 insertions(+) create mode 100644 libraries/libqalculate/README create mode 100644 libraries/libqalculate/libqalculate.SlackBuild create mode 100644 libraries/libqalculate/libqalculate.info create mode 100644 libraries/libqalculate/slack-desc diff --git a/libraries/libqalculate/README b/libraries/libqalculate/README new file mode 100644 index 0000000000..efccafa5a0 --- /dev/null +++ b/libraries/libqalculate/README @@ -0,0 +1,4 @@ +libqalculate is a library dependancy for Qalculate! and its related packages +libqalculate is math libary for expression evaluation with units, variables +and functions support and CAS functionality. +Requires the cln library, which is also available at SlackBuilds.org. diff --git a/libraries/libqalculate/libqalculate.SlackBuild b/libraries/libqalculate/libqalculate.SlackBuild new file mode 100644 index 0000000000..94396ed9fa --- /dev/null +++ b/libraries/libqalculate/libqalculate.SlackBuild @@ -0,0 +1,59 @@ +#!/bin/sh + +# Slackware build script for libqalculate +# Original Script (http://www.slackbuilds.org/template.SlackBuild) +# Mangled by (Nelson Milum) (truthfatal@gmail.com) + +PRGNAM=libqalculate +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 README.translate TODO" + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" +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 . +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 + +# This package has no man or info pages + +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 +# No need to keep reference docs, I don't think... +rm -rf $PKG/usr/share/doc + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz diff --git a/libraries/libqalculate/libqalculate.info b/libraries/libqalculate/libqalculate.info new file mode 100644 index 0000000000..d732bf36f9 --- /dev/null +++ b/libraries/libqalculate/libqalculate.info @@ -0,0 +1,8 @@ +PRGNAM="libqalculate" +VERSION="0.9.6" +HOMEPAGE="http://qalculate.sourceforge.net/" +DOWNLOAD="http://downloads.sourceforge.net/qalculate/libqalculate-0.9.6.tar.gz" +MD5SUM="e14432fc490f9a697e23e31a74e0eb19" +MAINTAINER="Nelson Milum" +EMAIL="truthfatal@gmail.com" +APPROVED="rworkman" diff --git a/libraries/libqalculate/slack-desc b/libraries/libqalculate/slack-desc new file mode 100644 index 0000000000..5ddd9f7218 --- /dev/null +++ b/libraries/libqalculate/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------------------------------------------------| +libqalculate: libqalculate (Library for Qualculate) +libqalculate: +libqalculate: libqalculate is a math libary for expression evaluation with +libqalculate: units, variables, and functions support and CAS functionality. +libqalculate: +libqalculate: +libqalculate: +libqalculate: +libqalculate: +libqalculate: +libqalculate: -- cgit v1.2.3