# Maintainer: PktSurf <smlinux@pktsurf.in>
app=dump1090
version=1.0
build=1sml
homepage="https://github.com/antirez/dump1090"
desc="Mode S decoder specifically designed for RTLSDR devices"
requires="eudev libusb rtl-sdr"

prepbuilddir() {
  mkandenterbuilddir
  rm -rf $app-$version

  tar xf $srcdir/$app-$version.tar.?z*
  cd $app-$version
  fixbuilddirpermissions
}

build() {
  make
  install -Dm 755 dump1090 $pkg/bin/dump1090

  cp README.md $srcdir/LICENSE $pkgdocs/

  mkfinalpkg
}

sha512sums="
3c1487b04ae641c463bb2742634348ec20e1f24afb09807e8d0b1228f1e7005122aa849fb184b27d8787f4f1b05fa6d9a05011c0fcd51cd1834c3ef888e7e3c0  dump1090-1.0.tar.lz
"
