diff options
author | Erik Hanson <erik@slackbuilds.org> | 2010-05-12 17:44:44 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-12 17:44:44 +0200 |
commit | 8f73ed774cfcdcc276f59591a289558075ab97f4 (patch) | |
tree | 24c2b5e539f95a9080b60f2ca01f4a98572b969b /office/homebank/homebank.SlackBuild | |
parent | 3548fef2787fd4fa0ce1f3180b2852fee53d1e01 (diff) |
office/homebank: Updated for version 4.0.4
Diffstat (limited to 'office/homebank/homebank.SlackBuild')
-rw-r--r-- | office/homebank/homebank.SlackBuild | 26 |
1 files changed, 20 insertions, 6 deletions
diff --git a/office/homebank/homebank.SlackBuild b/office/homebank/homebank.SlackBuild index de35eff88ca1c..8dd9e691c342c 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 |