summaryrefslogtreecommitdiff
path: root/network/arora/arora.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/arora/arora.SlackBuild')
-rw-r--r--network/arora/arora.SlackBuild33
1 files changed, 27 insertions, 6 deletions
diff --git a/network/arora/arora.SlackBuild b/network/arora/arora.SlackBuild
index 1c392acd80..3d01861d7c 100644
--- a/network/arora/arora.SlackBuild
+++ b/network/arora/arora.SlackBuild
@@ -1,7 +1,9 @@
#!/bin/sh
+
# Slackware build script for arora
# Copyright 2010 Grigorios Bouzakis <grbzks@xsmail.com>
+# Copyright 2012-2016 Matteo Bernardini <ponce@slackbuilds.org>, Pisa, Italy
# All rights reserved.
#
# Permission to use, copy, modify, and distribute this software for any purpose
@@ -20,13 +22,13 @@
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=arora
-VERSION=${VERSION:-20120612_e310d63}
+VERSION=${VERSION:-20150623_7c7514d}
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
@@ -37,6 +39,20 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+fi
+
DOCS="AUTHORS ChangeLog LICENSE.GPL2 LICENSE.GPL3 README"
set -e
@@ -49,16 +65,21 @@ tar xvf $CWD/$PRGNAM-$VERSION.tar.?z*
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
- \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
- -exec chmod 755 {} \; -o \
- \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
- -exec chmod 644 {} \;
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+
+echo "QMAKE_CXXFLAGS = $SLKCFLAGS" >> src/src.pro
qmake PREFIX=/usr
make
make install INSTALL_ROOT=$PKG
+find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
+ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+
mv $PKG/usr/share/man $PKG/usr/man
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION