blob: 50ae4b4e37257407b7672837927d237777d95d54 (
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
# Maintainer: dreieck
# PKGBUILD last time manually edited: At least on 2023-10-31.
_pkgname=openflights-data
pkgname="${_pkgname}-latest"
epoch=0
_pkgver=latest
pkgver="${_pkgver}"
pkgrel=2
pkgdesc="Airport, train station, ferry terminal, airline and flight routes data as CSV files to be used e.g. in GIS-applications."
arch=(any)
url="http://openflights.org/data"
license=(
'custom:Open Database License (ODbL) 1.0'
'custom:Database Contents License (DbCL) 1.0'
)
groups=(
"openflights"
)
depends=(
)
makedepends=(
)
optdepends=(
)
provides=(
"${_pkgname}=${pkgver}"
)
conflicts=(
"${_pkgname}"
)
source=(
"https://raw.githubusercontent.com/jpatokal/openflights/master/data/airports.dat"
"https://raw.githubusercontent.com/jpatokal/openflights/master/data/airports-extended.dat"
"https://raw.githubusercontent.com/jpatokal/openflights/master/data/airports-dafif.dat"
"https://raw.githubusercontent.com/jpatokal/openflights/master/data/airlines.dat"
"https://raw.githubusercontent.com/jpatokal/openflights/master/data/routes.dat"
"https://raw.githubusercontent.com/jpatokal/openflights/master/data/countries.dat"
"https://raw.githubusercontent.com/jpatokal/openflights/master/data/locales.dat"
"info.html::http://openflights.org/data"
"License_ODbL_1.0.html::http://opendatacommons.org/licenses/odbl/1.0/"
"License_DbCL_1.0.html::http://opendatacommons.org/licenses/dbcl/1.0/"
)
sha256sums=(
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
)
package() {
_instdirbase='/opt/openflights-data'
_instdir="${pkgdir}/${_instdirbase}"
_docdirbase="/usr/share/doc/${_pkgname}"
_docdir="${pkgdir}/${_docdirbase}"
_licensedirbase="/usr/share/licenses/${pkgname}"
_licensedir="${pkgdir}/${_licensedirbase}"
install -v -d -m755 "${_instdir}"
install -v -m644 "${srcdir}"/*.dat "${_instdir}/"
install -v -d -m755 "${_docdir}"
echo "${url}" > "${_docdir}/info.url"
chmod 644 "${_docdir}/info.url"
install -v -D -m644 "${srcdir}/info.html" "${_docdir}/info.html"
install -v -D -m644 "${srcdir}/License_ODbL_1.0.html" "${_licensedir}/License_ODbL_1.0.html"
install -v -D -m644 "${srcdir}/License_DbCL_1.0.html" "${_licensedir}/License_DbCL_1.0.html"
}
|