blob: 3467e81bc8275de77219ae8ddedfc0fc5f849e2b (
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
|
# Maintainer: Razer <razer[AT]neuf[DOT]fr>
pkgname=python-rf24
pkgver=1.4.9
pkgrel=0
pkgdesc='Python bindings for RF24 radio modules'
arch=(any)
url='http://tmrh20.github.io/RF24/'
license=('GPL2')
depends=(
'boost-libs'
'python'
'rf24'
)
makedepends=(
'boost'
'python-setuptools'
)
source=("https://github.com/nRF24/RF24/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('e0abdbf82cf852e68ca00e052af04c75c4c6ed4daee6222dea6f095c608a388a')
build() {
cd "$srcdir/RF24-$pkgver"
./configure --driver=SPIDEV --prefix="/usr" --ldconfig=""
cd "$srcdir/RF24-$pkgver/pyRF24"
python setup.py build
}
package() {
cd "$srcdir/RF24-$pkgver/pyRF24"
python setup.py install --root="$pkgdir/" --optimize=1
}
|