diff options
Diffstat (limited to 'network')
-rw-r--r-- | network/arora/arora.SlackBuild | 33 | ||||
-rw-r--r-- | network/arora/arora.info | 8 |
2 files changed, 31 insertions, 10 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 diff --git a/network/arora/arora.info b/network/arora/arora.info index d44a859d1b..05a051321e 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="" |