aboutsummaryrefslogtreecommitdiff
path: root/network/psi/psi.SlackBuild
diff options
context:
space:
mode:
authorDave Woodfall <dave@slackbuilds.org>2021-04-23 23:06:52 +0000
committerRobby Workman <rworkman@slackbuilds.org>2021-04-23 23:26:02 -0500
commitebaca630c957976dcc5fc2a180569861e82a604c (patch)
tree388bdda715cec469d63345aef5ba09a1bd7248be /network/psi/psi.SlackBuild
parent6dcae16896ed7c749a963f4bd8aa7aceff815be8 (diff)
network/psi: Updated for version 1.5. New maintainer.
Signed-off-by: Dave Woodfall <dave@slackbuilds.org>
Diffstat (limited to 'network/psi/psi.SlackBuild')
-rw-r--r--network/psi/psi.SlackBuild22
1 files changed, 14 insertions, 8 deletions
diff --git a/network/psi/psi.SlackBuild b/network/psi/psi.SlackBuild
index bc8b9c2660f5..8b05e7d9d01b 100644
--- a/network/psi/psi.SlackBuild
+++ b/network/psi/psi.SlackBuild
@@ -23,13 +23,13 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=psi
-VERSION=${VERSION:-1.3}
+VERSION=${VERSION:-1.5}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@@ -40,14 +40,18 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
- SLKCFLAGS="-march=i686 -mtune=i686"
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
- SLKCFLAGS=""
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
else
- SLKCFLAGS=""
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
fi
set -e
@@ -66,7 +70,9 @@ find -L . \
-exec chmod 644 {} \;
./configure \
- --prefix=/usr
+ --prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --qtselect=5
# Apply c++ flags
if [ -n "$SLKCFLAGS" ]; then