blob: ac1b4318e1a3186eaefa33ed1b674592b927bf1b (
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
|
pkgname=libbtbb
pkgver=2020.12.R1
_pkgver=2020-12-R1
pkgrel=2
pkgdesc='Bluetooth baseband decoding library'
url='https://github.com/greatscottgadgets/libbtbb'
arch=('x86_64' 'i686')
license=('GPL2')
makedepends=('cmake' 'python-distutils-extra')
depends=('python')
source=("https://github.com/greatscottgadgets/libbtbb/archive/${_pkgver}.tar.gz")
sha256sums=('9478bb51a38222921b5b1d7accce86acd98ed37dbccb068b38d60efa64c5231f')
build() {
cd "${srcdir}/${pkgname}-${_pkgver}/"
sed -i -r -e "s#@CMAKE_INSTALL_PREFIX@#/usr#" lib/libbtbb.pc.in
mkdir -p build
cd build
cmake -DCMAKE_INSTALL_PREFIX=${pkgdir}/usr -DENABLE_PYTHON=FALSE ..
make
cd ../python/pcaptools
python setup.py build
}
package() {
cd "${srcdir}/${pkgname}-${_pkgver}/build/"
make install
cd ../python/pcaptools
mkdir -p ${pkgdir}/usr/bin
cp btaptap ${pkgdir}/usr/bin/
python setup.py install --root="${pkgdir}/" --optimize=1 --skip-build
}
|