blob: 6acb6403e49dc88b9d52530e2672742946674a71 (
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
32
33
34
35
36
37
38
39
40
|
pkgname=ubertooth
pkgver=2020.12.R1
_pkgver=2020-12-R1
pkgrel=3
pkgdesc="Open source wireless development platform suitable for Bluetooth experimentation"
url="https://github.com/greatscottgadgets/ubertooth/"
arch=('x86_64' 'i686')
license=('GPL')
depends=('bluez-libs' 'libbtbb>=2018.12.R1' 'libusb' 'libpcap' 'python-numpy' 'python-pyusb')
optdepends=('qt5-declarative' 'python-pyside2' 'python-qtpy')
makedepends=('cmake' 'python-distutils-extra')
source=("https://github.com/greatscottgadgets/ubertooth/releases/download/${_pkgver}/ubertooth-${_pkgver}.tar.xz")
sha256sums=('93a4ce7af8eddcc299d65aff8dd3a0455293022f7fea4738b286353f833bf986')
build() {
cd "${srcdir}/${pkgname}-${_pkgver}/host/"
mkdir -p build
cd build
cmake -DENABLE_PYTHON=FALSE -DCMAKE_INSTALL_PREFIX=${pkgdir}/usr -DUDEV_RULES_PATH=${pkgdir}/etc/udev/rules.d -DINSTALL_UDEV_RULES=TRUE -DUDEV_RULES_GROUP=uucp ..
make
cd ../python/specan_ui
sed -i '/version/d' setup.py
python setup.py build
}
package() {
# Runtime
cd "${srcdir}/${pkgname}-${_pkgver}/host/build/"
make install
# GUI
cd ../python/specan_ui
python setup.py install --root="${pkgdir}/" --optimize=1 --skip-build
# Firmware
install -dm755 "${pkgdir}/usr/share/ubertooth"
cd "${srcdir}/ubertooth-${_pkgver}"
cp -r "ubertooth-one-firmware-bin" "${pkgdir}/usr/share/ubertooth/ubertooth-one-firmware-bin"
cp -r "firmware" "${pkgdir}/usr/share/ubertooth/firmware"
}
|