summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4f94a52fc5648f3cb9d4de88a71769b02b6628fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Maintainer: erdii <me at erdii dot engineering>
pkgname=ice9-bluetooth-sniffer
pkgver=23.06.0
pkgrel=2
pkgdesc=" Wireshark-compatible all-channel BLE sniffer for bladeRF, with wideband Bluetooth sniffing for HackRF and USRP"
arch=("any")
provides=()
conflicts=()
url="https://github.com/mikeryan/ice9-bluetooth-sniffer"
license=("GPLv2")
depends=("liquid-dsp" "hackrf" "bladerf" "libuhd" "fftw")
makedepends=("cmake")
source=("$url/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('1bb5ffa6494513406c5c482bb0a427c5e1012b103602f325d24827abbc82d6c1')

build() {
  cmake -B build -S "$pkgname-$pkgver" \
    -DCMAKE_BUILD_TYPE='None' \
    -DCMAKE_INSTALL_PREFIX='/usr' \
    -DEXTCAP_INSTALL_PATH='/usr/lib/wireshark' \
    -Wno-dev
  cmake --build build
}

check() {
  ctest --test-dir build --output-on-failure
}

package() {
  DESTDIR="$pkgdir" cmake --install build
}