pkgname=ubertooth pkgver=2020.12.R1 _pkgver=2020-12-R1 pkgrel=2 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') 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 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" }