blob: 28acc253e6cc911356f39a52bffd3c64cf591e4c (
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# Maintainer: Ivy Huang <imyxh@imyxh.net>
_name="digital_rf"
pkgbase="$_name"-git
pkgname="$pkgbase"
pkgver=2.6.3.r175.g4ff1d4f
pkgrel=1
pkgdesc="Read, write, and interact with data in the Digital RF and Digital Metadata formats"
url="https://github.com/MITHaystack/digital_rf"
license=('BSD')
arch=('x86_64')
depends=('hdf5' 'python-h5py' 'python-numpy' 'python-packaging'
'python-dateutil' 'python-pytz' 'python-six')
makedepends=('git' 'cmake' 'python-mako' 'python-pkgconfig' 'python-setuptools')
optdepends=('matlab: for the MATLAB interface'
'gnuradio: for gr_digital_rf'
'gnuradio-osmosdr: for thorosmo'
'libgnuradio-iio.so: for thorpluto'
'libgnuradio-uhd.so: for thor'
'python-matplotlib: for tools'
'python-pandas: for digital_metadata'
'python-sounddevice: for tools'
'python-scipy: for tools'
'python-watchdog: for mirror, ringbuffer, watchdog')
checkdepends=('python-pytest')
source=('git+https://github.com/MITHaystack/digital_rf.git')
sha512sums=('SKIP')
# cmake should detect the existence of MATLAB at build-time
#_cmakeopts=('-DENABLE_MATLAB=OFF')
pkgver() {
cd "$srcdir/$_name"
git describe --long --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
# cmake -B build -S "$_name" "${_cmakeopts[@]}"
cmake -B build -S "$_name"
cd build
make
}
check() {
cd build
make test
# pytest not working yet (can't find module on first install)
#pytest
}
package() {
cd build
make DESTDIR="$pkgdir" install
}
|