blob: e0b6eee7193989a32a98a65bf18b7ec26264f199 (
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
|
# Contributor : anish [ at ] gatech [dot] edu
# Maintainer : anish [ at ] gatech [dot] edu
pkgname=piaware-git
_gitname=piaware
pkgver=9.0.1.r0.g18aaf46
pkgrel=1
pkgdesc="Client-side package and programs for forwarding ADS-B data to FlightAware"
arch=('i686' 'x86_64' 'armv6h' 'armv7h' 'aarch64')
url="https://github.com/flightaware/piaware"
license=('BSD')
depends=('dump1090-fa-git>=6.1' 'tcl' 'tcllib' 'tclx' 'tk' 'tcltls>=1.7.12' 'python' 'tcllauncher')
makedepends=('git' 'autoconf' 'tcl' 'python' 'tcllauncher')
optdepends=('mlat-client: M-LAT support' 'net-tools')
source=('piaware::git+https://github.com/flightaware/piaware'
'piaware.conf')
md5sums=('SKIP'
'fc8d49cd7b2ba136a097501647ed105b')
install=piaware-git.install
backup=('etc/piaware.conf')
_gitname=piaware
pkgver() {
cd "${srcdir}/${_gitname}"
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cd "${srcdir}/${_gitname}"
#patch -Np0 < ../fixtclver.patch
}
package() {
install -D /usr/bin/tcllauncher "${pkgdir}"/usr/bin/tcllauncher
cd "${srcdir}/${_gitname}"
make install DESTDIR="${pkgdir}" SYSTEMD=/usr/lib/systemd/system
rm "${pkgdir}"/usr/bin/tcllauncher
install -dm755 "${pkgdir}"/var/cache/piaware
install -dm750 "${pkgdir}"/etc/sudoers.d/
install -Dm644 etc/piaware.sudoers "${pkgdir}"/etc/sudoers.d/01piaware
install -Dm640 "${srcdir}"/piaware.conf "${pkgdir}"/etc/piaware.conf
chmod -x "${pkgdir}/usr/lib/systemd/system/piaware.service"
install -Dm644 LICENSE.txt "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
}
|