summaryrefslogtreecommitdiff
path: root/network/psi/psi.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/psi/psi.SlackBuild')
-rw-r--r--network/psi/psi.SlackBuild28
1 files changed, 15 insertions, 13 deletions
diff --git a/network/psi/psi.SlackBuild b/network/psi/psi.SlackBuild
index 1bf58ddacc..ee04dfcdb3 100644
--- a/network/psi/psi.SlackBuild
+++ b/network/psi/psi.SlackBuild
@@ -2,11 +2,11 @@
# Slackware build script for psi
-# Written by Eugene Wissner <belka.ew@gmail.com>
+# Written by Eugene Wissner <eugen@flevum.de>
PRGNAM=psi
VERSION=${VERSION:-0.14}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
# Automatically determine the architecture we're building on:
@@ -25,17 +25,13 @@ PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
- LIBDIRSUFFIX=""
+ SLKCFLAGS="-march=i486 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then
- SLKCFLAGS="-O2 -march=i686 -mtune=i686"
- LIBDIRSUFFIX=""
+ SLKCFLAGS="-march=i686 -mtune=i686"
elif [ "$ARCH" = "x86_64" ]; then
- SLKCFLAGS="-O2 -fPIC"
- LIBDIRSUFFIX="64"
+ SLKCFLAGS=""
else
- SLKCFLAGS="-O2"
- LIBDIRSUFFIX=""
+ SLKCFLAGS=""
fi
set -e
@@ -54,9 +50,13 @@ find . \
-exec chmod 644 {} \;
./configure \
- --prefix=/usr \
- --libdir=/usr/lib$LIBDIRSUFFIX \
- --release
+ --prefix=/usr
+
+# Apply c++ flags
+if [ -n "$SLKCFLAGS" ]; then
+ echo "*-g++*:QMAKE_CFLAGS += $SLKCFLAGS
+*-g++*:QMAKE_CXXFLAGS += $SLKCFLAGS" >> conf.pri
+fi
make
make install INSTALL_ROOT=$PKG
@@ -64,6 +64,8 @@ make install INSTALL_ROOT=$PKG
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+# We don't need it
+rm $PKG/usr/bin/psi.debug
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a COPYING INSTALL README $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild