diff options
Diffstat (limited to 'development/bed/bed.SlackBuild')
-rw-r--r-- | development/bed/bed.SlackBuild | 27 |
1 files changed, 22 insertions, 5 deletions
diff --git a/development/bed/bed.SlackBuild b/development/bed/bed.SlackBuild index cda7e9329a..617726af14 100644 --- a/development/bed/bed.SlackBuild +++ b/development/bed/bed.SlackBuild @@ -1,20 +1,24 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for bed -# Written by B. Watson (yalhcru@gmail.com) +# Written by B. Watson (urchlay@slackware.uk) # Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. +# 20220404 bkw: BUILD=3, remove more cruft. # 20200111 bkw: Upstream site has expired and gone to meet its maker. # 20191225 bkw: BUILD=2 # - fix builds with optional re2 dep, document optional hyperscan dep. # - install BUGS CHANGELOG TODO in docdir. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=bed VERSION=${VERSION:-3.0.0} -BUILD=${BUILD:-2} +BUILD=${BUILD:-3} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -24,7 +28,11 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -70,6 +78,12 @@ sed -i '/Press F1 in menu/s/X/[x]/g' plugins/examples/helpf1.cc # 20191225 bkw: build was failing on systems where re2 was installed sed -i 's,static *string,static std::string,' src/re2search.cpp +# 20220205 bkw: C++ standards OCD... +sed -i 's,getret>0,getret,' src/readhelp.cpp + +# 20220404 bkw: wtf, upstream? you included compiled binaries in the source. +rm -f src/mkpartypes regex-*/regtest + # Not sure the --without-x does anything, but it doesn't hurt either. CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ @@ -148,6 +162,9 @@ rm -f $PKGBEDLIB/bedmagic.short $PKGBEDLIB/addmagic # Don't want this (use removepkg instead): rm -f $PKGBEDLIB/uninstallbed.sh +# 20220404 bkw: this looks utterly useless. +rm -f $PKGBEDLIB/plugins/examples/disass-use + # There's still some cruft in $PKGBEDLIB (e.g. sources for the plugins), # but it's stuff that could be considered documentation so I'll leave it. @@ -172,4 +189,4 @@ sed -e "s,@HYPER@,$HYPER," \ cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG -/sbin/makepkg -l y -c n -p $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n -p $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |