diff options
author | Fernando Lopez Jr <fernando.lopezjr@gmail.com> | 2016-09-02 19:01:00 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-09-03 07:17:23 +0700 |
commit | 21197b4c0e6c88a332d3ebfd1d0dc3405e552113 (patch) | |
tree | dab60e3ae8acf7aef518f98344e0dbffc7ab3da6 /development/radare2/radare2.SlackBuild | |
parent | 747edeee30b3c2d77ce6be9a9cace6792ece2d22 (diff) | |
download | slackbuilds-21197b4c0e6c88a332d3ebfd1d0dc3405e552113.tar.gz |
development/radare2: Updated for version 0.10.5 + new maintainer.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/radare2/radare2.SlackBuild')
-rw-r--r-- | development/radare2/radare2.SlackBuild | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/development/radare2/radare2.SlackBuild b/development/radare2/radare2.SlackBuild index 38de53c47b..db34462edd 100644 --- a/development/radare2/radare2.SlackBuild +++ b/development/radare2/radare2.SlackBuild @@ -3,6 +3,7 @@ # Slackware build script for radare2 # Copyright 2014 morte.noir, Russia, Saint-Petersburg +# Copyright 2016 Fernando Lopez Jr. <fernando.lopezjr@gmail.com> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,13 +24,13 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=radare2 -VERSION=${VERSION:-0.9.8} +VERSION=${VERSION:-0.10.5} 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 @@ -40,8 +41,8 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" @@ -69,6 +70,9 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +# Fix applied patches +patch -p1 < $CWD/fix-makefile.patch + CFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ @@ -89,7 +93,7 @@ find $PKG/usr/man -type f -exec gzip -9 {} \; for i in $(find $PKG/usr/man -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a AUTHORS COPYING* DEVELOPERS README.md TODO.md $PKG/usr/doc/$PRGNAM-$VERSION +cp -a COPYING* README.md TODO.md $PKG/usr/doc/$PRGNAM-$VERSION mv $PKG/usr/share/doc/radare2/* $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild rm -rf $PKG/usr/share/doc |