galculator: Upgraded to 2.1.4.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackware-id.org>
This commit is contained in:
Willy Sudiarto Raharjo 2015-09-16 03:49:10 +07:00
parent 56f87df5e6
commit a6881334c2

View file

@ -3,6 +3,7 @@
# Slackware build script for galculator # Slackware build script for galculator
# Copyright 2008, 2009 Frank Caraballo <fecaraballo{at}gmail{dot}com> # Copyright 2008, 2009 Frank Caraballo <fecaraballo{at}gmail{dot}com>
# Copyright 2014-2015 Willy Sudiarto Raharjo <willysr@slackware-id.org>
# All rights reserved. # All rights reserved.
# #
# Redistribution and use of this script, with or without modification, is # Redistribution and use of this script, with or without modification, is
@ -25,7 +26,7 @@
# Modified by Willy Sudiarto Raharjo for MSB Project # Modified by Willy Sudiarto Raharjo for MSB Project
PRGNAM=galculator PRGNAM=galculator
VERSION=${VERSION:-2.1.3} VERSION=${VERSION:-2.1.4}
BUILD=${BUILD:-1} BUILD=${BUILD:-1}
TAG=${TAG:-_msb} TAG=${TAG:-_msb}
@ -37,7 +38,7 @@ if [ -z "$ARCH" ]; then
esac esac
fi fi
wget -c http://downloads.sourceforge.net/$PRGNAM/$PRGNAM-$VERSION.tar.bz2 wget -c https://github.com/galculator/galculator/archive/v$VERSION.tar.gz
NUMJOBS=${NUMJOBS:-" -j8 "} NUMJOBS=${NUMJOBS:-" -j8 "}
@ -67,7 +68,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT mkdir -p $TMP $PKG $OUTPUT
cd $TMP cd $TMP
rm -rf $PRGNAM-$VERSION rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.?z* tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || tar xvf $CWD/v$VERSION.tar.gz
cd $PRGNAM-$VERSION cd $PRGNAM-$VERSION
chown -R root:root . chown -R root:root .
find -L . \ find -L . \
@ -76,10 +77,9 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
LDFLAGS+=' -lm' \
CFLAGS="$SLKCFLAGS" \ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \
./configure \ ./autogen.sh \
--prefix=/usr \ --prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \ --libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \ --sysconfdir=/etc \