blob: ce46854c32f4a8f41b7913aa36377ef3c28d24ec (
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
# Maintainer: Grey Christoforo <first name at last name dot net>
pkgname=scopy-git
pkgver=v1.3.0.rc2.r59.g3460cd84
pkgrel=1
epoch=0
pkgdesc='A software oscilloscope and signal analysis toolset'
arch=('x86_64')
url='https://github.com/analogdevicesinc/scopy'
license=('GPL3')
depends=(
qt5-base
gnuradio38
gnuradio38-companion
gnuradio-iio-patched-3.8
gnuradio-scopy-git
gnuradio-m2k-git
libsigrokdecode
libtinyiiod-git
qwt61-multiaxes-svn
)
makedepends=(
cmake
git
ninja
)
provides=(scopy)
conflicts=(scopy)
source=("git+https://github.com/analogdevicesinc/scopy.git"
"git+https://github.com/analogdevicesinc/iio-emu.git")
md5sums=('SKIP'
'SKIP')
pkgver() {
cd scopy
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cd scopy
git submodule init
git config submodule.iio-emu.url "${srcdir}"/iio-emu
git submodule update
}
build() {
cd scopy
cmake -W no-dev -G Ninja -B build_dir -S . \
-D CMAKE_BUILD_TYPE='None' \
-D CMAKE_INSTALL_PREFIX='/usr' \
-D gnuradio-iio_DIR='/usr/lib/cmake/iio' \
-D gnuradio-scopy_DIR='/usr/lib/cmake/scopy' \
-D gnuradio-m2k_DIR='/usr/lib/cmake/m2k'
cmake --build build_dir
}
check() {
cd scopy
cd build_dir
true
}
package() {
cd scopy
DESTDIR="${pkgdir}" cmake --install build_dir
install -Dt "${pkgdir}${_destdir}/share/licenses/${pkgname}" -m644 LICENSE
}
|