# Maintainer: dreieck # PKGBUILD last time manually edited: At least on 2018-12-10. _year='19' _prevyear="$(( ${_year} - 1 ))" _pkgname="idos-timetable-data-zsr-europe+sk-20${_year}" pkgname="${_pkgname}-latest" epoch=1 pkgver=2019_9_6 pkgrel=1 pkgdesc="20${_prevyear}/20${_year} Timetable data for the offline railway and other public transport timetable search engines by CHAPS: European and Slovak train data, provided by Inprop (Slovakia)." arch=(any) url="https://www.inprop.eu/Home/Downloads" license=('custom') groups=( "idos-timetable" ) depends=( "idos-timetable-data-trains-common" ) makedepends=( "p7zip" "wget" ) optdepends=( "idos-timetable-tariff-trains-europe: For showing prices." "idos-timetable-tariff-trains-cz: For showing prices (Czech republic only)." "idos-timetable-tariff-trains-sk: For showing prices (Slovakia only)." "idos-timetable-maps-trains-europe: For displaying routes." "idos-timetable-maps-trains-cz: For displaying routes (Czech republic only)." "idos-timetable-maps-trains-sk: For displaying routes (Slovakia only)." ) provides=( "${_pkgname}=${pkgver}" "idos-timetable-data=${pkgver}" "idos-timetable-data-trains=${pkgver}" "idos-timetable-data-trains-sk=${pkgver}" "idos-timetable-data-trains-sk-20${_year}=${pkgver}" "idos-timetable-data-trains-europe=${pkgver}" "idos-timetable-data-trains-europe-20${_year}=${pkgver}" ) replaces=( 'idos-timetable-data-zsr-europe+sk-latest' "${_pkgname}<=${pkgver}" ) conflicts=( "${_pkgname}" ) _list_sources() { wget -nv -O- "${url}" | tr -d '\a' | tr '\n' '\a' | sed -E -e 's|