From d4f8e38d430f5688b4b173b18666c25ada7d21e1 Mon Sep 17 00:00:00 2001 From: Erik Hanson Date: Wed, 12 May 2010 17:45:16 +0200 Subject: system/fpm2: Updated for version 0.72 --- system/fpm2/fpm2.SlackBuild | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'system') 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 -- cgit v1.2.3