summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8dbb5a8767f526921badf23b4aed53901808a5ec (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
# Maintainer: Jakob (XDjackieXD) <aur at chaosfield dot at>

pkgname=gr-satnogs-git
pkgver=r584.1103a05
pkgrel=1
pkgdesc="gr-satnogs from librespacefoundation"
arch=('x86_64' 'aarch64')
url="https://gitlab.com/librespacefoundation/satnogs/gr-satnogs.git"
license=('GPL3')
depends=('gnuradio' 'gr-soapy' 'png++' 'nlohmann-json' 'libvorbis' 'libogg' 'libvolk' 'libpng')
makedepends=('git' 'cmake' 'swig')
provides=('gr-satnogs')
conflicts=('gr-satnogs')
source=("git+$url")
sha256sums=('SKIP')

pkgver() {
  cd gr-satnogs

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

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

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

  make
}

package() {
  cd gr-satnogs/build

  make DESTDIR="$pkgdir" install
}