# Contributor: fossdd <fossdd@pwned.life>
# Maintainer: fossdd <fossdd@pwned.life>
pkgname=dump978
pkgver=9.0
pkgrel=0
pkgdesc="FlightAware's 978MHz UAT demodulator"
arch="all"
url="https://github.com/flightaware/dump978"
license="BSD-2-Clause"
depends="
	bladerf
	boost
	rtl-sdr
	soapy-sdr
	"
makedepends="
	boost-dev
	soapy-sdr-dev
	"
source="$pkgname-$pkgver.tar.gz::https://github.com/flightaware/dump978/archive/refs/tags/v$pkgver.tar.gz"

build() {
	make all faup978
}

check() {
	make fec_tests
}

package() {
	install -D -m755 dump978-fa "$pkgdir"/usr/bin/dump978-fa
	install -D -m755 skyaware978 "$pkgdir"/usr/bin/skyaware978
	install -D -m755 faup978 "$pkgdir"/usr/lib/piaware/helpers/faup978
}

sha512sums="
2a6effba4596a775228020c4cf3ca872179e9c5caf735126fdc4294b91e3f9447e4c6323f5ced8c92570cb6193363c796361c71b0a016ea1b1fe2b32e67a3dbc  dump978-9.0.tar.gz
"
