summaryrefslogtreecommitdiff
path: root/development/kelbt/kelbt.SlackBuild
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2017-01-24 14:22:23 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-01-28 07:38:34 +0700
commite443415637eefd844fbcfd0433d55a78f44c33cf (patch)
tree7df74a3f4b441f526f01ccfd4e3bbfca0f230577 /development/kelbt/kelbt.SlackBuild
parentc974d2e630c7ac0825d8cdf8c2d486df7462bec4 (diff)
downloadslackbuilds-e443415637eefd844fbcfd0433d55a78f44c33cf.tar.gz
development/kelbt: Updated for version 0.16, cleanups.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'development/kelbt/kelbt.SlackBuild')
-rw-r--r--development/kelbt/kelbt.SlackBuild33
1 files changed, 17 insertions, 16 deletions
diff --git a/development/kelbt/kelbt.SlackBuild b/development/kelbt/kelbt.SlackBuild
index 3fdb172cd7..73bf09973b 100644
--- a/development/kelbt/kelbt.SlackBuild
+++ b/development/kelbt/kelbt.SlackBuild
@@ -1,7 +1,7 @@
#!/bin/sh
# Slackware build script for kelbt
-# Copyright Matteo Bernardini <ponce@slackbuilds.org>, Pisa, Italy, 2012
+# Copyright 2012-2017 Matteo Bernardini <ponce@slackbuilds.org>, Pisa, Italy
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -22,13 +22,13 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=kelbt
-VERSION=${VERSION:-0.15}
+VERSION=${VERSION:-0.16}
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
@@ -39,8 +39,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"
@@ -64,30 +64,31 @@ 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 {} \;
-sed -i "s|\ compare| this->compare|" aapl/{avl,bst}common.h
-sed -i "s| compare| this->compare|" aapl/{avl,bst}common.h
+sed -i "s|\ compare| this->compare|" aapl/{avl,bst}common.h || exit 1
+sed -i "s| compare| this->compare|" aapl/{avl,bst}common.h || exit 1
+
+autoreconf -fi
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
+ --docdir=/usr/doc/$PRGNAM-$VERSION \
--build=$ARCH-slackware-linux
-sed -i "s|-g|$SLKCFLAGS|" kelbt/Makefile
-
make
-install -D -m 0755 $PRGNAM/$PRGNAM $PKG/usr/bin/$PRGNAM
-mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+make install DESTDIR=$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
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a COPYING CREDITS ChangeLog TODO kelbt.vim $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a COPYING ChangeLog TODO $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install