blob: 12742184ba6a07d2506d50b5a2d81f97286cdd76 (
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
41
42
43
44
45
46
47
|
# Maintainer: Rhys Perry <rhysperry111 AT gmail.com>
# Contributor: Lex Black <autumn-wind@web.de>
_gitname=ubertooth
pkgname=ubertooth-git
pkgver=2020.12.R1.r34.g0aae62e
pkgrel=2
pkgdesc='open source wireless development platform suitable for Bluetooth experimentation'
url='https://github.com/greatscottgadgets/ubertooth'
provides=('ubertooth')
conflicts=('ubertooth')
arch=('x86_64' 'i686')
license=('GPL2')
depends=('libbtbb-git' 'libusb' 'libpcap' 'python' 'python-libusb1')
makedepends=('git' 'cmake' 'python-setuptools')
source=('git+https://github.com/greatscottgadgets/ubertooth/' 'specan-version.patch::https://github.com/greatscottgadgets/ubertooth/commit/6fb9858b3d3daf511f70cb7c5db2b6316031972a.patch')
md5sums=('SKIP' 'a85952153d7e1f233d790a2bf363ce80')
pkgver() {
cd "$_gitname"
git describe --tags --long --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cd "$_gitname"
git am "$srcdir/specan-version.patch"
}
build() {
cd "$_gitname/host/"
mkdir -p build
cd build
cmake -DCMAKE_INSTALL_PREFIX=${pkgdir}/usr ..
make
cd ../python/ubtbr/
python setup.py build
}
package() {
cd "$_gitname/host/build/"
make install
cd ../python/ubtbr/
python setup.py install --root="$pkgdir"
}
|