summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 77e6a17f26dda4d9e22e13e37e360d73ecda6a43 (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
_gitname=libbtbb
pkgname=libbtbb-git
pkgver=2018.12.R1.r3.g6c7b9ff
pkgrel=1
pkgdesc='Bluetooth baseband decoding library'
url='https://github.com/greatscottgadgets/libbtbb'
arch=('x86_64' 'i686')
license=('GPL2')
makedepends=(cmake)
depends=('python' 'git')
source=("git+https://github.com/greatscottgadgets/libbtbb.git")
sha1sums=('SKIP')

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

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

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