summaryrefslogtreecommitdiff
path: root/office/kmymoney2/kmymoney2.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'office/kmymoney2/kmymoney2.SlackBuild')
-rw-r--r--office/kmymoney2/kmymoney2.SlackBuild27
1 files changed, 17 insertions, 10 deletions
diff --git a/office/kmymoney2/kmymoney2.SlackBuild b/office/kmymoney2/kmymoney2.SlackBuild
index fa41ae9ab7..ffa731f64a 100644
--- a/office/kmymoney2/kmymoney2.SlackBuild
+++ b/office/kmymoney2/kmymoney2.SlackBuild
@@ -1,6 +1,8 @@
#!/bin/sh
-
+
# Slackware build script for: kmymoney2
+
+# Written by Luiz Eduardo.
# Copyright 2007-2008 Michiel van Wessem, Manchester, United Kingdom
# All rights reserved.
#
@@ -23,8 +25,10 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# Very heavily modified by the SlackBuilds.org project. --Michiel
+
PRGNAM=kmymoney2
-VERSION=${VERSION:-0.9.3}
+VERSION=${VERSION:-1.0.0}
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -40,18 +44,20 @@ OFX=${OFX:-NO}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
fi
-set -e
+set -e # Exit on most of the errors.
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
-rm -rf $TMP/$PRGNAM-$VERSION
cd $TMP
+rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
cd $PRGNAM-$VERSION
chown -R root:root .
@@ -71,16 +77,18 @@ fi
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
- --prefix=/usr \
- --localstatedir=/var \
--sysconfdir=/etc \
+ --localstatedir=/var \
--mandir=/usr/man \
+ --with-qt-dir=/opt/kde3/lib${LIBDIRSUFFIX}/qt3 \
+ --with-qt-includes=/opt/kde3/lib${LIBDIRSUFFIX}/qt/include \
+ --with-qt-libraries=/opt/kde3/lib${LIBDIRSUFFIX}/qt3/lib \
--${useofx}able-ofxplugin \
--${useofx}able-ofxbanking \
--disable-leak-check \
--disable-pdf-docs \
--disable-debug \
- --build=$ARCH-slackware-linux \
+ --build=$ARCH-slackware-linux
make
make install-strip DESTDIR=$PKG
@@ -91,13 +99,12 @@ make install-strip DESTDIR=$PKG
)
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a AUTHORS COPYING ChangeLog* INSTALL README* $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a AUTHORS COPYING ChangeLog* INSTALL README* TODO $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
-find $PKG/usr/doc/$PRGNAM-$VERSION -type f -exec chmod 644 {} \;
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}