summaryrefslogtreecommitdiff
path: root/development/ahven/ahven.SlackBuild
diff options
context:
space:
mode:
authorZhu Qun-Ying <zhu.qunying at gmail dot com>2018-08-08 21:09:45 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-08-11 07:23:07 +0700
commitc3c5a82a2c8095f5ca3e492844a15772a07c51b8 (patch)
tree98332d4148e8c3560fec29b905bce49b5b1caab5 /development/ahven/ahven.SlackBuild
parent50af2f837fec6a6dd0600ed4dd77e0435e5c1160 (diff)
downloadslackbuilds-c3c5a82a2c8095f5ca3e492844a15772a07c51b8.tar.gz
development/ahven: Updated for version 2.7.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'development/ahven/ahven.SlackBuild')
-rw-r--r--development/ahven/ahven.SlackBuild16
1 files changed, 10 insertions, 6 deletions
diff --git a/development/ahven/ahven.SlackBuild b/development/ahven/ahven.SlackBuild
index bb4d06feb0..14145bd903 100644
--- a/development/ahven/ahven.SlackBuild
+++ b/development/ahven/ahven.SlackBuild
@@ -1,6 +1,6 @@
#!/bin/sh
-# ahven package build script (written by zhu.qunying@gmail.com)
-# Copyright 2012-2017 Zhu Qun-Ying
+# ahven package build script
+# Copyright 2012-2018 Zhu Qun-Ying
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -21,7 +21,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=ahven
-VERSION=${VERSION:-2.6}
+VERSION=${VERSION:-2.7}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -42,7 +42,7 @@ if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
- SLKCFLAGS="-O2 -march=i686"
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
@@ -71,12 +71,16 @@ make DESTDIR=$PKG prefix=/usr libdir=/usr/lib$LIBDIRSUFFIX
make DESTDIR=$PKG prefix=/usr libdir=/usr/lib$LIBDIRSUFFIX install
+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
+
mkdir -p $PKG/usr/lib$LIBDIRSUFFIX/gnat
sed -e "s/@prefix@/\/usr/" -e "s/@libdir@/\/usr\/lib$LIBDIRSUFFIX/g" \
- $CWD/ahven.gpr > $PKG/usr/lib$LIBDIRSUFFIX/gnat/ahven.gpr
+ $CWD/ahven.gpr > $PKG/usr/lib$LIBDIRSUFFIX/gnat/ahven.gpr
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a README.rst ROADMAP NEWS LICENSE doc/tutorial examples $PKG/usr/doc/$PRGNAM-$VERSION
+cp README.rst ROADMAP NEWS.txt LICENSE.txt $CWD/$PRGNAM.SlackBuild $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a doc/tutorial examples $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install