summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDonald Webster2020-02-25 17:23:24 -0800
committerDonald Webster2020-02-25 17:23:24 -0800
commit0066d6b09160b4d9eea4c6f74f6b640b061aee4b (patch)
tree590b4e30a30d2b65f6385b310e30562e9e87cbe8
downloadaur-0066d6b09160b4d9eea4c6f74f6b640b061aee4b.tar.gz
Initial version of dump978-fa AUR package.
-rw-r--r--.SRCINFO22
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD35
-rw-r--r--dump978.service14
4 files changed, 75 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..a01f74dc18d
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,22 @@
+pkgbase = dump978-fa-git
+ pkgdesc = FlightAware/Mutability fork of dump978, a simple Mode S decoder for RTLSDR devices.
+ pkgver = 3.8.0.r0.g5421a45
+ pkgrel = 1
+ epoch = 1
+ url = https://github.com/flightaware/dump978
+ arch = i686
+ arch = x86_64
+ arch = armv6h
+ arch = armv7h
+ license = BSD
+ makedepends = git
+ depends = rtl-sdr
+ depends = bladerf>=2.0.2
+ depends = soapyrtlsdr
+ source = dump978::git+git://github.com/flightaware/dump978
+ source = dump978.service
+ sha256sums = SKIP
+ sha256sums = 935798e1a09ea86ce7d25078b3dff400fd09ef9f0fec5e0e94636597f57f91b2
+
+pkgname = dump978-fa-git
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..aac19ec335c
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+/*.xz
+/dump978/
+/src/
+/pkg/
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..58fc90d05b0
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,35 @@
+# Contributor : anish [ at ] gatech [dot] edu
+# Maintainer : anish [ at ] gatech [dot] edu
+
+pkgname=dump978-fa-git
+_gitname=dump978
+pkgver=3.8.0.r0.g5421a45
+pkgrel=1
+epoch=1
+pkgdesc="FlightAware/Mutability fork of dump978, a simple Mode S decoder for RTLSDR devices."
+arch=('i686' 'x86_64' 'armv6h' 'armv7h')
+url="https://github.com/flightaware/dump978"
+license=('BSD')
+depends=('rtl-sdr' 'bladerf>=2.0.2' 'soapyrtlsdr')
+makedepends=('git')
+source=('dump978::git+git://github.com/flightaware/dump978'
+ 'dump978.service')
+
+sha256sums=('SKIP'
+ '935798e1a09ea86ce7d25078b3dff400fd09ef9f0fec5e0e94636597f57f91b2')
+pkgver() {
+ cd "${srcdir}/${_gitname}"
+ git describe --long --tags --match=v* | sed 's/dev.//g' | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+build() {
+ cd "${srcdir}/${_gitname}"
+ make all faup978 EXTRACFLAGS=-DHTMLPATH=\\\"/usr/share/dump978/html\\\"
+}
+
+package() {
+ install -D -m755 "${srcdir}/${_gitname}/dump978-fa" "${pkgdir}/usr/bin/dump978-fa"
+ install -D -m755 "${srcdir}/${_gitname}/skyaware978" "${pkgdir}/usr/bin/skyaware978"
+ install -D -m755 "${srcdir}/${_gitname}/faup978" "${pkgdir}/usr/lib/piaware/helpers/faup978"
+ install -D -m644 dump978.service "${pkgdir}/usr/lib/systemd/system/dump978.service"
+}
diff --git a/dump978.service b/dump978.service
new file mode 100644
index 00000000000..70b27b3c29b
--- /dev/null
+++ b/dump978.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=RtlSdr mode S decoder
+Wants=network-online.target
+After=syslog.target network-online.target
+
+[Service]
+Restart=always
+RestartSec=30
+RuntimeDirectory=dump978
+ExecStart=/usr/bin/dump978
+
+[Install]
+Alias=dump978-fa.service
+WantedBy=multi-user.target