diff options
Diffstat (limited to 'libraries/libbtbb')
-rw-r--r-- | libraries/libbtbb/README | 7 | ||||
-rw-r--r-- | libraries/libbtbb/libbtbb.SlackBuild | 20 | ||||
-rw-r--r-- | libraries/libbtbb/libbtbb.info | 2 |
3 files changed, 20 insertions, 9 deletions
diff --git a/libraries/libbtbb/README b/libraries/libbtbb/README index b65b68dc12..bd7e3a0299 100644 --- a/libraries/libbtbb/README +++ b/libraries/libbtbb/README @@ -1,3 +1,4 @@ -This is the Bluetooth baseband decoding library, forked from the GR-Bluetooth -project. It can be used to extract Bluetooth packet and piconet information -from Ubertooth devices as well as GR-Bluetooth/USRP. +This is the Bluetooth baseband decoding library, forked from +the GR-Bluetooth project. It can be used to extract Bluetooth +packet and piconet information from Ubertooth devices as well as +GR-Bluetooth/USRP. diff --git a/libraries/libbtbb/libbtbb.SlackBuild b/libraries/libbtbb/libbtbb.SlackBuild index 3e72cf2228..af93b61357 100644 --- a/libraries/libbtbb/libbtbb.SlackBuild +++ b/libraries/libbtbb/libbtbb.SlackBuild @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for libbtbb @@ -22,10 +22,13 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=libbtbb VERSION=${VERSION:-2020.12.R1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -35,7 +38,14 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +# If the variable PRINT_PACKAGE_NAME is set, then this script will report what +# the name of the created package would be, and then exit. This information +# could be useful to other scripts. +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} @@ -59,8 +69,8 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +rm -rf $PRGNAM-${VERSION//./-} +tar xvf $CWD/$PRGNAM-${VERSION//./-}.tar.gz cd $PRGNAM-${VERSION//./-} chown -R root:root . find -L . \ @@ -95,4 +105,4 @@ mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/libraries/libbtbb/libbtbb.info b/libraries/libbtbb/libbtbb.info index 9df541a78d..c4f9917f6d 100644 --- a/libraries/libbtbb/libbtbb.info +++ b/libraries/libbtbb/libbtbb.info @@ -1,7 +1,7 @@ PRGNAM="libbtbb" VERSION="2020.12.R1" HOMEPAGE="https://github.com/greatscottgadgets/libbtbb" -DOWNLOAD="https://github.com/greatscottgadgets/libbtbb/archive/2020-12-R1/libbtbb-2020.12.R1.tar.gz" +DOWNLOAD="https://github.com/greatscottgadgets/libbtbb/archive/2020-12-R1/libbtbb-2020-12-R1.tar.gz" MD5SUM="d1c01829b1f32926065e72095641a6be" DOWNLOAD_x86_64="" MD5SUM_x86_64="" |