summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5a9581d225660882cd273e2266966e7224544020 (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
# Maintainer: Grey Christoforo <first name at last name dot net>

pkgname=gnuradio-scopy-git
pkgver=r9.ee184f7
pkgrel=1
epoch=0
pkgdesc='Scopy IIO blocks for GNU Radio'
arch=('x86_64')
url='https://github.com/analogdevicesinc/gr-scopy'
license=('LGPL')
depends=(
gnuradio38
gnuradio38-companion
)
makedepends=(
cmake
git
ninja
)
provides=(gnuradio-scopy)
conflicts=(gnuradio-scopy)
source=("git+https://github.com/analogdevicesinc/gr-scopy.git")
md5sums=('SKIP')

pkgver() {
  cd gr-scopy
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
  cd gr-scopy
}

build() {
  cd gr-scopy

  cmake -W no-dev -G Ninja -B build_dir -S . \
    -D CMAKE_BUILD_TYPE='None' \
    -D CMAKE_INSTALL_PREFIX='/usr'

  cmake --build build_dir
}

check() {
  cd gr-scopy
  cd build_dir
  true
}

package() {
  cd gr-scopy
  DESTDIR="${pkgdir}" cmake --install build_dir

  install -Dt "${pkgdir}${_destdir}/share/licenses/${pkgname}" -m644 LICENSE
}