aboutsummaryrefslogtreecommitdiff
path: root/office/kmymoney2/kmymoney2.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'office/kmymoney2/kmymoney2.SlackBuild')
-rw-r--r--office/kmymoney2/kmymoney2.SlackBuild22
1 files changed, 17 insertions, 5 deletions
diff --git a/office/kmymoney2/kmymoney2.SlackBuild b/office/kmymoney2/kmymoney2.SlackBuild
index 5fdb6e1ac2594..fa41ae9ab7691 100644
--- a/office/kmymoney2/kmymoney2.SlackBuild
+++ b/office/kmymoney2/kmymoney2.SlackBuild
@@ -1,7 +1,6 @@
#!/bin/sh
# Slackware build script for: kmymoney2
-
# Copyright 2007-2008 Michiel van Wessem, Manchester, United Kingdom
# All rights reserved.
#
@@ -25,7 +24,7 @@
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=kmymoney2
-VERSION=0.9.2
+VERSION=${VERSION:-0.9.3}
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -35,6 +34,10 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
+# (note this needs libofx from SlackBuilds.org. By default
+# this will be disabled.
+OFX=${OFX:-NO}
+
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then
@@ -58,6 +61,13 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
+# If OFX=yes, build with ofxsupport
+if [ "$OFX" = "YES" ]; then
+ useofx="en"
+else
+ useofx="dis"
+fi
+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
@@ -65,10 +75,12 @@ CXXFLAGS="$SLKCFLAGS" \
--localstatedir=/var \
--sysconfdir=/etc \
--mandir=/usr/man \
- --disable-debug \
- --enable-leak-check \
+ --${useofx}able-ofxplugin \
+ --${useofx}able-ofxbanking \
+ --disable-leak-check \
--disable-pdf-docs \
- --build=$ARCH-slackware-linux
+ --disable-debug \
+ --build=$ARCH-slackware-linux \
make
make install-strip DESTDIR=$PKG