aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 a3cba5e0af43..44746c5ed48a 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