blob: 823aaf8585a510e5f9ea3037d83efec513afe2e5 (
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
44
45
46
47
48
49
50
51
52
53
54
55
|
# Maintainer Jonas Wunderlich <aur[at]03j[dot]de>
# Based on PKGBUILD from aur package `readsb-git`, maintainer was:
# Maintainer: Donald Webster <fryfrog[at]gmail[dot]com>
_pkgname=readsb
pkgname="${_pkgname}-wiedehopf-git"
pkgver=3.14.1605.r1.gd2320d0
pkgrel=1
pkgdesc="ADS-B decoder swiss knife."
arch=('x86_64' 'armv6h' 'armv7h' 'aarch64')
url="https://github.com/wiedehopf/readsb"
license=('GPL3')
depends=(
'rtl-sdr'
'ncurses'
)
provides=('readsb'
'dump1090-fa-git' 'dump1090' 'dump1090-fa')
conflicts=('readsb' 'dump1090-fa-git' 'dump1090' 'dump1090-fa')
makedepends=('git')
backup=('etc/default/readsb')
source=('git+https://github.com/wiedehopf/readsb'
'readsb.sysusers'
'readsb-gain'
'readsb-set-location'
'readsb.tmpfiles')
sha256sums=('SKIP'
'3da99128f5a89aef6f9748f1e09f0120940f123e80c007e7d5ac2d0571740a05'
'dd27b1326d2454d9965e55bcfb7d736e5660123346843a343b28fd901f4ede78'
'e07e4a59d2739cba531b61d06b2bf52ce2fe3d12f4ffeb2740bdc7de63515e04'
'39ed9d33054f7e7bb7f97b7ef27bd17f12f8fd01e4f341328ab735474464592b')
pkgver() {
cd "${srcdir}/${_pkgname}"
git describe --long --tags --match=v* | sed 's/dev.//g' | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "${srcdir}/${_pkgname}"
make -j$(nproc) AIRCRAFT_HASH_BITS=16 RTLSDR=yes OPTIMIZE="-O2 -march=native"
}
package() {
install -D -m 755 "${srcdir}/${_pkgname}/readsb" "${pkgdir}/usr/bin/readsb"
install -D -m 755 "${srcdir}/${_pkgname}/viewadsb" "${pkgdir}/usr/bin/viewadsb"
install -D -m 644 "${srcdir}/${_pkgname}/debian/readsb.default" "${pkgdir}/etc/default/readsb"
install -D -m 644 "${srcdir}/${_pkgname}/debian/readsb.service" "${pkgdir}/usr/lib/systemd/system/readsb.service"
install -D -m 644 "${srcdir}/${_pkgname}/debian/readsb.1" "${pkgdir}/usr/share/man/man1/readsb.1"
install -D -m 644 "${srcdir}/${_pkgname}/debian/viewadsb.1" "${pkgdir}/usr/share/man/man1/viewadsb.1"
install -D -m 644 readsb.sysusers "${pkgdir}/usr/lib/sysusers.d/readsb.conf"
install -D -m 644 readsb.tmpfiles "${pkgdir}/usr/lib/tmpfiles.d/readsb.conf"
install -D -m 755 readsb-gain "${pkgdir}/usr/bin/readsb-gain"
install -D -m 755 readsb-set-location "${pkgdir}/usr/bin/readsb-set-location"
}
|