network/psi: Misc tweaks plus updated maintainer email
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
parent
81e92856eb
commit
457fdf28dd
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue