summaryrefslogtreecommitdiff
path: root/libraries/afflib/afflib.SlackBuild
diff options
context:
space:
mode:
authorBarry J. Grundy <bgrundy [AT] linuxleo.com>2016-08-26 00:08:49 +0100
committerDavid Spencer <idlemoor@slackbuilds.org>2016-08-28 00:22:59 +0100
commitb622fd281dd72e00fa906281e5d4941045cc5a1e (patch)
treeb44de8319486937e92d2898767c49ee5335b464c /libraries/afflib/afflib.SlackBuild
parent67b55222b106e1e97b71b2e3c1783ac45ca851e2 (diff)
downloadslackbuilds-b622fd281dd72e00fa906281e5d4941045cc5a1e.tar.gz
libraries/afflib: Updated for version 3.7.7.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'libraries/afflib/afflib.SlackBuild')
-rw-r--r--libraries/afflib/afflib.SlackBuild24
1 files changed, 14 insertions, 10 deletions
diff --git a/libraries/afflib/afflib.SlackBuild b/libraries/afflib/afflib.SlackBuild
index 776e905163..8e74ea4dcd 100644
--- a/libraries/afflib/afflib.SlackBuild
+++ b/libraries/afflib/afflib.SlackBuild
@@ -22,16 +22,17 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-# Updated: v3.7.4 November of 2014 Barry J. Grundy <bgrundy(at)linuxleo.com>
+# Updated: v3.7.7 August of 2016 by Barry J. Grundy <bgrundy(at)linuxleo.com>
+SRCNAM=AFFLIBv3
PRGNAM=afflib
-VERSION=${VERSION:-3.7.4}
+VERSION=${VERSION:-3.7.7}
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
@@ -42,8 +43,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"
@@ -61,9 +62,9 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
-cd $PRGNAM-$VERSION
+rm -rf $SRCNAM-$VERSION
+tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
+cd $SRCNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -71,6 +72,7 @@ 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 {} \;
+./bootstrap.sh
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
@@ -80,9 +82,11 @@ CXXFLAGS="$SLKCFLAGS" \
--localstatedir=/var \
--mandir=/usr/man \
--disable-static \
- --enable-python \
+ --enable-python=yes \
--enable-threading \
- --build=$ARCH-slackware-linux
+ --build=$ARCH-slackware-linux \
+ LIBS=-lncurses
+
make
make install-strip DESTDIR=$PKG