summaryrefslogtreecommitdiff
path: root/office/homebank/homebank.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'office/homebank/homebank.SlackBuild')
-rw-r--r--office/homebank/homebank.SlackBuild26
1 files changed, 20 insertions, 6 deletions
diff --git a/office/homebank/homebank.SlackBuild b/office/homebank/homebank.SlackBuild
index de35eff88c..8dd9e691c3 100644
--- a/office/homebank/homebank.SlackBuild
+++ b/office/homebank/homebank.SlackBuild
@@ -1,13 +1,14 @@
-#!/bin/sh -eu
+#!/bin/sh
# Slackware build script for homebank
# Written by Erik Hanson erik@slackbuilds.org
PRGNAM=homebank
-VERSION=4.0
+VERSION=4.0.4
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
@@ -15,10 +16,17 @@ 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"
fi
+set -eu
+
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
@@ -31,17 +39,23 @@ chmod -R u+w,go+r-w,a-s .
CFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
- --localstatedir=/var
+ --localstatedir=/var \
+ --build=$ARCH-slackware-linux
make
make install DESTDIR=$PKG
-find $PKG | xargs file | egrep "ELF.*executable" | cut -f1 -d: | xargs strip --strip-unneeded 2> /dev/null
+find $PKG | xargs file | egrep "ELF.*executable" | cut -f1 -d: | \
+ xargs strip --strip-unneeded 2> /dev/null || true
-mkdir -p $PKG/usr/share/applications $PKG/usr/doc/$PRGNAM-$VERSION $PKG/install
-cp -a AUTHORS COPYING ChangeLog INSTALL NEWS README $PKG/usr/doc/$PRGNAM-$VERSION
+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
+
+mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh