From 457fdf28dd47e63a56a6e696c6ea95a4666a6d7e Mon Sep 17 00:00:00 2001 From: Eugene Wissner Date: Sun, 5 Jun 2011 23:05:02 -0500 Subject: network/psi: Misc tweaks plus updated maintainer email Signed-off-by: Robby Workman --- network/psi/psi.SlackBuild | 28 +++++++++++++++------------- network/psi/psi.info | 4 ++-- 2 files changed, 17 insertions(+), 15 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 +# Written by Eugene Wissner 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 diff --git a/network/psi/psi.info b/network/psi/psi.info index f2e27134aa..a42c394445 100644 --- a/network/psi/psi.info +++ b/network/psi/psi.info @@ -6,5 +6,5 @@ MD5SUM="9d7dcce3bcab53b741a712199bd986be" DOWNLOAD_x86_64="" MD5SUM_x86_64="" MAINTAINER="Eugene Wissner" -EMAIL="belka.ew@gmail.com" -APPROVED="michiel" +EMAIL="eugen@flevum.de" +APPROVED="rworkman" -- cgit v1.2.3