summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik Hanson <erik@slackbuilds.org>2010-05-12 17:45:16 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-12 17:45:16 +0200
commitd4f8e38d430f5688b4b173b18666c25ada7d21e1 (patch)
tree6f78ee3b130a00f55f843af02cfaecabe760626e
parentb66cf53707ee0053006dc1b0eee3543ba6b11d05 (diff)
downloadslackbuilds-d4f8e38d430f5688b4b173b18666c25ada7d21e1.tar.gz
system/fpm2: Updated for version 0.72
-rw-r--r--system/fpm2/fpm2.SlackBuild14
1 files changed, 9 insertions, 5 deletions
diff --git a/system/fpm2/fpm2.SlackBuild b/system/fpm2/fpm2.SlackBuild
index a3cba5e0af..44746c5ed4 100644
--- a/system/fpm2/fpm2.SlackBuild
+++ b/system/fpm2/fpm2.SlackBuild
@@ -3,8 +3,6 @@
# Slackware build script for FPM2
# Written by Erik Hanson erik@slackbuilds.org
-set -eu
-
PRGNAM=fpm2
VERSION=${VERSION:-0.72}
ARCH=${ARCH:-i486}
@@ -16,12 +14,17 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
+set -eu
+
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"
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
fi
rm -rf $PKG
@@ -41,9 +44,10 @@ CFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--sysconfdir=/etc \
- --localstatedir=/var/lib \
+ --localstatedir=/var \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
--mandir=/usr/man \
- --disable-static
+ --build=$ARCH-slackware-linux
make
make install-strip DESTDIR=$PKG