mirror of
https://github.com/outbackdingo/ports.git
synced 2026-03-19 17:13:32 +00:00
25 lines
630 B
Plaintext
25 lines
630 B
Plaintext
# description : hackrf
|
|
# homepage : https://github.com/greatscottgadgets/hackrf
|
|
# depends : libusb fftw
|
|
|
|
name=hackrf
|
|
version=2023.01.1
|
|
release=1
|
|
source="$name-$version.tar.gz::https://github.com/greatscottgadgets/$name/archive/refs/tags/v$version.tar.gz
|
|
hackrf.conf"
|
|
|
|
build() {
|
|
cd $name-$version/host
|
|
mkdir build
|
|
cd build
|
|
cmake ../ -DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DFFTW_INCLUDE_DIR=/usr/lib \
|
|
-DFFTW_LIBRARY=/usr/includes
|
|
|
|
make
|
|
make DESTDIR=$PKG install
|
|
install -Dm644 ../libhackrf/53-hackrf.rules $PKG/usr/lib/udev/rules.d/53-hackrf.rules
|
|
|
|
install -Dm644 $SRC/hackrf.conf $PKG/etc/modprobe.d/hackrf.conf
|
|
}
|