aboutsummaryrefslogtreecommitdiff
path: root/development/ahven/ahven.SlackBuild
diff options
context:
space:
mode:
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 bb4d06feb090..14145bd903fd 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