diff options
author | Robby Workman <rworkman@slackbuilds.org> | 2013-11-03 11:08:15 -0600 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2013-11-03 11:12:16 -0600 |
commit | 57cafca9a64f50af06102c89677a818671ce6b1e (patch) | |
tree | c322d936fcf01a95bc549199778b1ede486e7507 /academic/calcoo/calcoo.SlackBuild | |
parent | 54ad5b6b46d2f358dabc66a264d95902fdfd5c76 (diff) |
academic/calcoo: Updated for version 2.1.0.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'academic/calcoo/calcoo.SlackBuild')
-rw-r--r-- | academic/calcoo/calcoo.SlackBuild | 55 |
1 files changed, 9 insertions, 46 deletions
diff --git a/academic/calcoo/calcoo.SlackBuild b/academic/calcoo/calcoo.SlackBuild index e1bdc8cda5355..98397daeb9ae0 100644 --- a/academic/calcoo/calcoo.SlackBuild +++ b/academic/calcoo/calcoo.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for calcoo -# Copyright 2006-2012 Robby Workman, Northport, Alabama, USA +# Copyright 2006-2013 Robby Workman, Northport, Alabama, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,70 +23,33 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=calcoo -VERSION=${VERSION:-1.3.18} +VERSION=${VERSION:-2.1.0} 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 +ARCH=noarch 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" -else - SLKCFLAGS="-O2" - LIBDIRSUFFIX="" -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 a-s,u+w,go+r-w . - -CFLAGS="$SLKCFLAGS" \ -CXXFLAGS="$SLKCFLAGS" \ -./configure \ - --prefix=/usr \ - --libdir=/usr/lib${LIBDIRSUFFIX} \ - --localstatedir=/var \ - --mandir=/usr/man \ - --build=$ARCH-slackware-linux -make LIBS+="-lm" # libm doesn't get linked otherwise -make install DESTDIR=$PKG +mkdir -p $PKG/usr/share/java +cp -a $CWD/calcoo.jar $PKG/usr/share/java +chmod 0644 $PKG/usr/share/java/calcoo.jar -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/bin +cat $CWD/calcoo.wrapper > $PKG/usr/bin/calcoo +chmod 0755 $PKG/usr/bin/calcoo mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a AUTHORS COPYING ChangeLog INSTALL NEWS README \ - $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -find $PKG/usr/man -type f -exec gzip -9 {} \; - mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc |