# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). # See COPYING for license details. pkgname=libbtbb pkgver=2020.12.R1 pkgrel=1 pkgdesc='A library to decode Bluetooth baseband packets, as produced by the Ubertooth and GR-Bluetooth projects.' url='https://github.com/greatscottgadgets/libbtbb/releases' arch=('x86_64' 'aarch64') license=('GPL') depends=('glibc' 'python2' 'python2-pcapy' 'python2-pypcap') makedepends=('cmake') source=("https://github.com/greatscottgadgets/libbtbb/archive/${pkgver//./-}.tar.gz") sha512sums=('a3dc2c8d27e4b85aae4847ac39f871ecf800ebf911aacd01682da6c50b13f3247c7d683bce855f2cf59b56a29c661223a2c22e98a8d86e8edaccd57af282bac6') build() { cd "$pkgname-${pkgver//./-}" mkdir build cd build cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr .. make } package() { cd "$pkgname-${pkgver//./-}" cd build make DESTDIR="$pkgdir" install }