summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 705b6f464c4b5e5a42c8f25eb3ee5df874c3ab80 (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
# Maintainer: Aang23 <aang23@altillimity.com>
pkgname=satdump-git
pkgver=r1747.6e5b1325
pkgrel=1
epoch=
pkgdesc="A generic satellite processing software"
arch=('any')
url="https://github.com/altillimity/SatDump"
license=('GPL')
groups=()
depends=("libvolk" "glfw" "glew" "fftw" "airspy" "airspyhf" "rtl-sdr" "hackrf" "libusb" "libiio" "libad9361" "ocl-icd" "zstd" "nng")
makedepends=("gcc" "make" "cmake")
checkdepends=()
optdepends=("limesuite" "bladerf")
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=('git+https://github.com/altillimity/SatDump')
noextract=()
md5sums=('SKIP')
validpgpkeys=()

build() {
	cd "SatDump"
	mkdir build
	cd build
	cmake -DCMAKE_BUILD_TYPE=Release ..
	make $MAKEOPTS
}

package() {
	cd "SatDump/build"
	make DESTDIR="$pkgdir/" install
}

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