diff options
author | alkos333 <me@alkos333.net> | 2010-05-11 22:55:08 +0200 |
---|---|---|
committer | Erik Hanson <erik@slackbuilds.org> | 2010-05-11 22:55:08 +0200 |
commit | ab0de5934cd38958d8927a4758f4fc57eda2930c (patch) | |
tree | 1a0b59b2fc930619c0630785b9bf240e675edd8a | |
parent | 749e13866cb9b70254e193eb38b831481e8e08f8 (diff) | |
download | slackbuilds-ab0de5934cd38958d8927a4758f4fc57eda2930c.tar.gz |
office/gnumeric: Added to 12.1 repository
-rw-r--r-- | office/gnumeric/README | 10 | ||||
-rw-r--r-- | office/gnumeric/gnumeric.SlackBuild | 85 | ||||
-rw-r--r-- | office/gnumeric/gnumeric.info | 8 | ||||
-rw-r--r-- | office/gnumeric/slack-desc | 12 |
4 files changed, 115 insertions, 0 deletions
diff --git a/office/gnumeric/README b/office/gnumeric/README new file mode 100644 index 0000000000..d2ae0dcc51 --- /dev/null +++ b/office/gnumeric/README @@ -0,0 +1,10 @@ +The goal of Gnumeric is to be the best possible spreadsheet. We are not +attempting to clone existing applications. However, Gnumeric can read +files saved with other spreadsheets and we offer a customizable feel +that attempts to minimize the costs of transition. + +In order to compile, intltool (needed to compile, not to run) and +goffice are required. Both are available on SlackBuilds.org + +There are also optional depenencies, the list of which can be found +here: http://www.gnome.org/projects/gnumeric/downloads.shtml diff --git a/office/gnumeric/gnumeric.SlackBuild b/office/gnumeric/gnumeric.SlackBuild new file mode 100644 index 0000000000..e3fa8d0db1 --- /dev/null +++ b/office/gnumeric/gnumeric.SlackBuild @@ -0,0 +1,85 @@ +#!/bin/sh + + +# Slackware build script for gnumeric +# Copyright (c) 2008 alkos333 <me@alkos333.net> +# All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are +# met: +# +# * Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +# "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 COPYRIGHT +# OWNER OR CONTRIBUTORS 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. + + +set -e + +PRGNAM=gnumeric +VERSION=${VERSION:-1.9.1} +ARCH=${ARCH:-i486} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ATCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" +fi + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar -xjvf $CWD/$PRGNAM-$VERSION.tar.bz2 +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 + +( + cd $PKG/usr/man + find . -type f -exec gzip -9 {} \; +) + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a AUTHORS BEVERAGES BUGS COPYING ChangeLog \ +HACKING INSTALL MAINTAINERS NEWS README $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +find $PKG/usr/doc -type f -exec chmod 644 {} \; + + +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/office/gnumeric/gnumeric.info b/office/gnumeric/gnumeric.info new file mode 100644 index 0000000000..e2633d3b9f --- /dev/null +++ b/office/gnumeric/gnumeric.info @@ -0,0 +1,8 @@ +PRGNAM="gnumeric" +VERSION="1.9.1" +HOMEPAGE="http://www.gnome.org/projects/gnumeric/" +DOWNLOAD="http://ftp.gnome.org/pub/GNOME/sources/gnumeric/1.9/gnumeric-1.9.1.tar.bz2" +MD5SUM="b311291a2b03b1d8cc0ab1c1e3f34668" +MAINTAINER="alkos333" +EMAIL="me@alkos333.net" +APPROVED="Erik Hanson" diff --git a/office/gnumeric/slack-desc b/office/gnumeric/slack-desc new file mode 100644 index 0000000000..3cb90a15a6 --- /dev/null +++ b/office/gnumeric/slack-desc @@ -0,0 +1,12 @@ +|-----handy-ruler------------------------------------------------------| +gnumeric: +gnumeric: The goal of Gnumeric is to be the best possible spreadsheet. +gnumeric: We are not attempting to clone existing applications. +gnumeric: However, Gnumeric can read files saved with other +gnumeric: spreadsheets and we offer a customizable feel that attempts +gnumeric: to minimize the costs of transition. +gnumeric: +gnumeric: +gnumeric: +gnumeric: Homepage: http://www.gnome.org/projects/gnumeric/ +gnumeric: |