diff options
author | felics@felics-tablet | 2017-02-12 12:22:16 +0100 |
---|---|---|
committer | felics@felics-tablet | 2017-02-12 12:22:16 +0100 |
commit | d9ebedb3ce9a3ee3ebb265ce53ba8573af3d4e26 (patch) | |
tree | 8635107636883eab40a90de8190fa38df5e5dd93 | |
download | aur-d9ebedb3ce9a3ee3ebb265ce53ba8573af3d4e26.tar.gz |
Initial Commit.
-rw-r--r-- | .SRCINFO | 35 | ||||
-rw-r--r-- | PKGBUILD | 84 |
2 files changed, 119 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..84c1e0c11228 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,35 @@ +pkgbase = openflights-data-latest + pkgdesc = Airport, train station, ferry terminal, airline and flight routes data as CSV files to be used e.g. in GIS-applications. + pkgver = latest + pkgrel = 1 + epoch = 0 + url = http://openflights.org/data.html + arch = any + groups = openflights + license = custom:Open Database License (ODbL) 1.0 + license = custom:Database Contents License (DbCL) 1.0 + provides = openflights-data=latest + conflicts = openflights-data + source = https://raw.githubusercontent.com/jpatokal/openflights/master/data/airports.dat + source = https://raw.githubusercontent.com/jpatokal/openflights/master/data/airports-extended.dat + source = https://raw.githubusercontent.com/jpatokal/openflights/master/data/airports-dafif.dat + source = https://raw.githubusercontent.com/jpatokal/openflights/master/data/airlines.dat + source = https://raw.githubusercontent.com/jpatokal/openflights/master/data/routes.dat + source = https://raw.githubusercontent.com/jpatokal/openflights/master/data/countries.dat + source = https://raw.githubusercontent.com/jpatokal/openflights/master/data/locales.dat + source = info.html::http://openflights.org/data.html + source = License_ODbL_1.0.html::http://opendatacommons.org/licenses/odbl/1.0/ + source = License_DbCL_1.0.html::http://opendatacommons.org/licenses/dbcl/1.0/ + sha256sums = SKIP + sha256sums = SKIP + sha256sums = SKIP + sha256sums = SKIP + sha256sums = SKIP + sha256sums = SKIP + sha256sums = SKIP + sha256sums = SKIP + sha256sums = SKIP + sha256sums = SKIP + +pkgname = openflights-data-latest + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..063c8304b3a4 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,84 @@ +# Maintainer: dreieck + +# PKGBUILD last time manually edited: At least on 2017-02-12. + +_pkgname=openflights-data +pkgname="${_pkgname}-latest" +epoch=0 +_pkgver=latest +pkgver="${_pkgver}" +pkgrel=1 +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.html" +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.html" + "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" +} |