aboutsummaryrefslogtreecommitdiff
path: root/network/arora
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2016-12-29 17:35:24 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-12-31 08:22:33 +0700
commit2704667f186dd0af823028f92120f8ff5cc512d5 (patch)
treeea7b1cb9070c39d0dbc73fd62efb61e71f9145b9 /network/arora
parentd7b415e814540459a5a311f0c7345f5d41ea9306 (diff)
network/arora: Updated for version 20150623_7c7514d, cleanups.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'network/arora')
-rw-r--r--network/arora/arora.SlackBuild33
-rw-r--r--network/arora/arora.info8
2 files changed, 31 insertions, 10 deletions
diff --git a/network/arora/arora.SlackBuild b/network/arora/arora.SlackBuild
index 1c392acd80e5b..3d01861d7cebc 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
diff --git a/network/arora/arora.info b/network/arora/arora.info
index d44a859d1baeb..05a051321e281 100644
--- a/network/arora/arora.info
+++ b/network/arora/arora.info
@@ -1,8 +1,8 @@
PRGNAM="arora"
-VERSION="20120612_e310d63"
-HOMEPAGE="http://code.google.com/p/arora"
-DOWNLOAD="http://ponce.cc/slackware/sources/repo/arora-20120612_e310d63.tar.xz"
-MD5SUM="395d05af7854cfd44c8fca493a6ceba6"
+VERSION="20150623_7c7514d"
+HOMEPAGE="https://github.com/arora/arora"
+DOWNLOAD="http://ponce.cc/slackware/sources/repo/arora-20150623_7c7514d.tar.xz"
+MD5SUM="8efd0f44e2de2ea23ac6f9db27f4e788"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""