blob: aedcc515d6227e8dc0c3ba61664a51ab70fb3f48 (
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
|
# Maintainer: Razer <razer[AT]neuf[DOT]fr>
pkgname=rf24
pkgver=1.4.11
pkgrel=0
pkgdesc='Linux support for RF24 radio modules'
arch=(any)
url='https://github.com/nRF24/RF24'
license=('GPL2')
source=("https://github.com/nRF24/RF24/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('43596c36065980e6b98cac3f0504b3f562ab1b88f954f6f7cd765de456536d38')
build() {
cd "$srcdir/RF24-$pkgver"
./configure --driver=SPIDEV --prefix="$pkgdir/usr" --ldconfig=''
}
package() {
cd "$srcdir/RF24-$pkgver"
make -j1 install
cd "$pkgdir/usr/lib"
rm librf24.so librf24-bcm.so librf24.so.1.4
ln -s librf24.so.1 librf24.so.1.4
ln -s librf24.so.1 librf24.so
ln -s librf24.so librf24-bcm.so
}
|