summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 26717f6efc886e4ead2941287d416e538b47098d (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
# Maintainer: FFY00 <filipe.lains@gmail.com>
pkgname=gr-limesdr
pkgver=1.0.0
_gitver=$pkgver-RC
pkgrel=1
pkgdesc="gr-limesdr Plugin for GNURadio"
arch=('any')
url="https://github.com/myriadrf/gr-limesdr"
license=('MIT')
optdepends=(
  'doxygen: generate documentation'
  'swig: bindings'
  'python2: python bindings'
)
depends=('boost' 'gnuradio' 'limesuite')
makedepends=('cmake')
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$_gitver.tar.gz")
sha256sums=('a6be1bfd2cbfeef33aa8e91fa35720bfad9d4b7dc4a29afb08dfcee451f6c32e')

build() {
  mkdir -p "$srcdir"/$pkgname-$_gitver/build
  cd "$srcdir"/$pkgname-$_gitver/build

  cmake .. \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_BUILD_TYPE=Release

  make
}

package() {
  cd "$srcdir"/$pkgname-$_gitver/build

  make DESTDIR="$pkgdir" install

  install -Dm 644 "$srcdir"/$pkgname-$_gitver/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}