blob: 4420fa39d54be18e0ce4a790ce0392a950b37202 (
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
|
# Copyright 2019-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
MY_PV="${PV/-/_}"
MY_PV="${MY_PV/_p/-}"
MY_P="${PN}_${MY_PV}"
DESCRIPTION="Flightradar24 data sharing software"
HOMEPAGE="https://www.flightradar24.com/share-your-data"
SRC_URI="
amd64? ( https://repo-feed.flightradar24.com/linux_x86_64_binaries/${MY_P}_amd64.tgz )
x86? ( https://repo-feed.flightradar24.com/linux_x86_binaries/${MY_P}_i386.tgz )
"
LICENSE="Flightradar24"
SLOT="0"
KEYWORDS="-* ~amd64 x86"
RDEPEND="
net-wireless/dump1090
virtual/libusb:1
"
RESTRICT="bindist mirror"
S="${WORKDIR}"
QA_PREBUILT="usr/bin/fr24feed"
src_install() {
dobin fr24feed_$(usex amd64 'amd64' 'i386')/fr24feed
insinto /etc
doins "${FILESDIR}"/fr24feed.ini
newinitd "${FILESDIR}"/fr24feed.initd fr24feed
newconfd "${FILESDIR}"/fr24feed.confd fr24feed
}
pkg_postinst() {
elog "Please run '/usr/bin/fr24feed --signup', to register yourself as a data feeder."
}
|