summaryrefslogtreecommitdiff
path: root/office/kmymoney/kmymoney.SlackBuild
diff options
context:
space:
mode:
authorGilcio Amaral <gilcio.amaral@gmail.com>2011-03-03 22:35:48 -0600
committerRobby Workman <rworkman@slackbuilds.org>2011-03-04 10:12:48 -0600
commitc649e8f418d182c720edf0bbd72160e23176cbe5 (patch)
tree482f736d19399d8d067bece6023b64d3088ae339 /office/kmymoney/kmymoney.SlackBuild
parent2cd06312acae8dff5c7b9e90a801d574e9feae29 (diff)
downloadslackbuilds-c649e8f418d182c720edf0bbd72160e23176cbe5.tar.gz
office/kmymoney: Updated for version 4.5.2.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'office/kmymoney/kmymoney.SlackBuild')
-rw-r--r--office/kmymoney/kmymoney.SlackBuild18
1 files changed, 10 insertions, 8 deletions
diff --git a/office/kmymoney/kmymoney.SlackBuild b/office/kmymoney/kmymoney.SlackBuild
index a9abaeee68..eac25eab29 100644
--- a/office/kmymoney/kmymoney.SlackBuild
+++ b/office/kmymoney/kmymoney.SlackBuild
@@ -26,14 +26,16 @@
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=kmymoney
-VERSION=${VERSION:-4.5.1}
+VERSION=${VERSION:-4.5.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
+ # Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
@@ -44,14 +46,14 @@ PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
- LIBDIRSUFFIX=""
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
- SLKCFLAGS="-O2 -march=i686 -mtune=i686"
- LIBDIRSUFFIX=""
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
- SLKCFLAGS="-O2 -fPIC"
- LIBDIRSUFFIX="64"
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
else
SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
@@ -84,7 +86,7 @@ cd build
make VERBOSE=1
make install VERBOSE=1 DESTDIR=$PKG
-cd -
+cd ..
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true