aboutsummaryrefslogtreecommitdiff
path: root/development/bashdb/bashdb.SlackBuild
diff options
context:
space:
mode:
authorErik Hanson <erik@slackbuilds.org>2010-05-11 14:05:50 +0200
committerErik Hanson <erik@slackbuilds.org>2010-05-11 14:05:50 +0200
commit486d6aecea77f6edfd3d1cef7cefbb17b16a41fb (patch)
treecad6e26c444d861dbba68589753bd62d9b51006f /development/bashdb/bashdb.SlackBuild
parentbb53bb5f097ff03a22e133d0ca1967d225ca8732 (diff)
development/bashdb: Initial import
Diffstat (limited to 'development/bashdb/bashdb.SlackBuild')
-rw-r--r--development/bashdb/bashdb.SlackBuild52
1 files changed, 52 insertions, 0 deletions
diff --git a/development/bashdb/bashdb.SlackBuild b/development/bashdb/bashdb.SlackBuild
new file mode 100644
index 0000000000000..bd50a19856712
--- /dev/null
+++ b/development/bashdb/bashdb.SlackBuild
@@ -0,0 +1,52 @@
+#!/bin/sh
+
+# Slackware build script for bashdb
+# Written by Erik Hanson erik@slackbuilds.org
+
+# This will build without readarray support. Read the INSTALL file in the
+# source directory for instructions if you wish to enable readarray support.
+# readarray speeds up initial loading of large scripts.
+
+PRGNAM=bashdb
+VERSION=3.1-0.08
+PKGVER=3.1_0.08
+ARCH=noarch
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+CWD=`pwd`
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1
+cd $PRGNAM-$VERSION
+chown -R root:root .
+chmod -R u+w,go+r-w,a-s .
+
+CFLAGS="$SLKCFLAGS" \
+./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --mandir=/usr/man \
+ || exit 1
+
+make || exit 1
+make install-strip DESTDIR=$PKG || exit 1
+
+find $PKG/usr/man -type f -exec gzip -9 {} \;
+gzip -9 $PKG/usr/info/*.info
+rm -rf $PKG/usr/info/dir
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a AUTHORS COPYING ChangeLog ChangeLog.0 INSTALL NEWS README THANKS TODO $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$PKGVER-$ARCH-$BUILD$TAG.tgz