summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d07f694b7af4018616df4c584f4922772b48661c (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
# Contributor: Lex Black <autumn-wind@web.de>

_gitname=ubertooth
pkgname=ubertooth-git
pkgver=2020.12.R1.r33.ge0fd34d
pkgrel=1
pkgdesc="open source wireless development platform suitable for Bluetooth experimentation"
url="https://github.com/greatscottgadgets/ubertooth"
arch=('x86_64' 'i686')
license=('GPL2')
depends=('libbtbb-git' 'libusb' 'libpcap' 'python')
makedepends=('git' 'cmake')
source=(git+https://github.com/greatscottgadgets/ubertooth/)
md5sums=('SKIP')


pkgver() {
  cd "$_gitname"
  git describe --tags --long --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "$_gitname/host/"
  mkdir -p build
  cd build
  cmake -DCMAKE_INSTALL_PREFIX=${pkgdir}/usr ..
  make
}

package() {
  cd "$_gitname/host/build/"
  make install
}