summaryrefslogtreecommitdiffstats
path: root/development/bashdb/bashdb.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'development/bashdb/bashdb.SlackBuild')
-rw-r--r--development/bashdb/bashdb.SlackBuild22
1 files changed, 12 insertions, 10 deletions
diff --git a/development/bashdb/bashdb.SlackBuild b/development/bashdb/bashdb.SlackBuild
index 1566517e74..c87c9900cf 100644
--- a/development/bashdb/bashdb.SlackBuild
+++ b/development/bashdb/bashdb.SlackBuild
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/sh -eu
# Slackware build script for bashdb
# Written by Erik Hanson erik@slackbuilds.org
@@ -8,10 +8,11 @@
# readarray speeds up initial loading of large scripts.
PRGNAM=bashdb
-VERSION=3.1-0.09
+VERSION=4.0-0.1
ARCH=noarch
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
@@ -21,26 +22,27 @@ PKG_VER=$(echo $VERSION | tr '-' '_')
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
-cd $TMP
+cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1
+tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
-CFLAGS="$SLKCFLAGS" \
+# Hack configure, upstream has "tested on bash 3.1 and 4.0 alpha"
+sed -i "s/'4.0'|'3.2')/'4.0'|'3.2'|'3.1')/" configure
+
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/man \
- --infodir=/usr/info \
- || exit 1
+ --infodir=/usr/info
-make || exit 1
-make install-strip DESTDIR=$PKG || exit 1
+make
+make install-strip DESTDIR=$PKG
-find $PKG/usr/man -type f -exec gzip -9 {} \;
+find $PKG/usr/man/man1 -type f -exec gzip -9 {} \;
gzip -9 $PKG/usr/info/*.info
rm -rf $PKG/usr/info/dir