diff options
Diffstat (limited to 'development/bashdb/bashdb.SlackBuild')
-rw-r--r-- | development/bashdb/bashdb.SlackBuild | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/development/bashdb/bashdb.SlackBuild b/development/bashdb/bashdb.SlackBuild new file mode 100644 index 0000000000..bd50a19856 --- /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 |