summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e9c5015ab186393fb9723f473c928a431057c2d0 (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
# Maintainer: Simon Vikstrom <simon@devsn.se>

pkgname=gr-soapy-git
pkgver=r168.42f68ca
pkgrel=1
pkgdesc="gr-soapy from librespacefoundation"
arch=('x86_64' 'aarch64')
url="https://gitlab.com/librespacefoundation/gr-soapy.git"
license=('GPL3')
depends=('gnuradio' 'boost')
makedepends=('git' 'cmake' 'swig')
provides=('gr-soapy')
conflicts=('gr-soapy')
source=("git+$url")
sha256sums=('SKIP')

pkgver() {
  cd gr-soapy

  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  mkdir -p gr-soapy/build
  cd gr-soapy/build

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

  make
}

package() {
  cd gr-soapy/build

  make DESTDIR="$pkgdir" install
}