summaryrefslogtreecommitdiff
path: root/development/bashdb/bashdb.SlackBuild
diff options
context:
space:
mode:
authorErik Hanson <erik@slackbuilds.org>2010-05-11 22:22:21 +0200
committerMichiel van Wessem <michiel@slackbuilds.org>2010-05-11 22:22:21 +0200
commitdd32db5be824aec1e73297baacb077b016b29177 (patch)
treee4c56636ce9aa605d94bd9eb4cd634776ae05ce5 /development/bashdb/bashdb.SlackBuild
parentfcd0c10e6e9c36de6f5fb4c0845b9a6e374f5e71 (diff)
downloadslackbuilds-dd32db5be824aec1e73297baacb077b016b29177.tar.gz
development/bashdb: Updated for version 4.0-0.1
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