diff options
author | git user | 2023-09-04 13:43:21 +0200 |
---|---|---|
committer | git user | 2023-09-04 13:43:21 +0200 |
commit | 647e8f26f0bfb4a4d806239ba858b8c343bd9d7c (patch) | |
tree | 1c9d4b5de037ad66b6c7145314f1830c7964ee61 | |
parent | 9669b80be9209db45b156f5fc2371d814511c007 (diff) | |
download | aur-647e8f26f0bfb4a4d806239ba858b8c343bd9d7c.tar.gz |
Switched to version-aware source download target.
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | PKGBUILD | 20 |
2 files changed, 22 insertions, 16 deletions
@@ -1,7 +1,7 @@ pkgbase = idos-timetable-maps-chaps-trains-europe-latest pkgdesc = Map data for the timetable search engines by CHAPS: European railway. - pkgver = 2021_3_30 - pkgrel = 1 + pkgver = 2023_8_10 + pkgrel = 2 epoch = 0 url = http://chaps.cz/eng/download/idos/zip#kotvamap arch = any @@ -9,15 +9,15 @@ pkgbase = idos-timetable-maps-chaps-trains-europe-latest license = custom makedepends = wget depends = idos-timetable-data-trains - provides = idos-timetable-maps-chaps-trains-europe=2021_3_30 - provides = idos-timetable-maps=2021_3_30 - provides = idos-timetable-maps-trains=2021_3_30 - provides = idos-timetable-maps-trains-cz=2021_3_30 - provides = idos-timetable-maps-trains-sk=2021_3_30 - provides = idos-timetable-maps-trains-europe=2021_3_30 + provides = idos-timetable-maps-chaps-trains-europe=2023_8_10 + provides = idos-timetable-maps=2023_8_10 + provides = idos-timetable-maps-trains=2023_8_10 + provides = idos-timetable-maps-trains-cz=2023_8_10 + provides = idos-timetable-maps-trains-sk=2023_8_10 + provides = idos-timetable-maps-trains-europe=2023_8_10 conflicts = idos-timetable-maps-chaps-trains-europe conflicts = idos-timetable-maps-chaps-all - source = vlak_m.zip::http://ttakt.chaps.cz/TTAktual/Win/Zip/VLAK_M.ZIP + source = vlak_m-2023_8_10.zip::http://ttakt.chaps.cz/TTAktual/Win/Zip/VLAK_M.ZIP source = IDOS-Licence.pdf::http://chaps.cz/files/idos/IDOS-Licence.pdf source = license-dummy.txt sha256sums = SKIP @@ -1,15 +1,21 @@ # Maintainer: dreieck -# PKGBUILD last time manually edited: At least on 2021-07-04. +# PKGBUILD last time manually edited: At least on 2023-09-04. +url="http://chaps.cz/eng/download/idos/zip#kotvamap" +_zipfile="VLAK_M.ZIP" +_pkgver() { + # Reason for a _pkgver(): Have something to run before source download so that we can have version aware source downloads. + wget -nv -O- "${url}" | tr -d '\a' | tr '\n' '\a' | sed 's|^.*File '"${_zipfile}"'\(.*\)Zip/'"${_zipfile}"'.*$|\1\n|g' | tr '\a' '\n' | grep 'Update date:' | cut -d, -f1 | sed -r 's|([0-9]+)\.([0-9]+)\.([0-9]+).|\n\3_\2_\1\n|g' | grep -E '^[0-9]+_[0-9]+_[0-9]+' +} _pkgname=idos-timetable-maps-chaps-trains-europe pkgname="${_pkgname}-latest" epoch=0 -pkgver=2021_3_30 -pkgrel=1 +_pkgver="$(_pkgver)" # This should be set _before_ sources get downloaded. +pkgver="${_pkgver}" +pkgrel=2 pkgdesc="Map data for the timetable search engines by CHAPS: European railway." arch=(any) -url="http://chaps.cz/eng/download/idos/zip#kotvamap" license=('custom') groups=( @@ -42,10 +48,10 @@ conflicts=( "idos-timetable-maps-chaps-all" ) -_target='vlak_m.zip' +_target="vlak_m-${_pkgver}.zip" source=( - "${_target}::http://ttakt.chaps.cz/TTAktual/Win/Zip/VLAK_M.ZIP" + "${_target}::http://ttakt.chaps.cz/TTAktual/Win/Zip/${_zipfile}" "IDOS-Licence.pdf::http://chaps.cz/files/idos/IDOS-Licence.pdf" "license-dummy.txt" ) @@ -57,7 +63,7 @@ sha256sums=( ) pkgver() { - wget -nv -O- "${url}" | tr -d '\a' | tr '\n' '\a' | sed 's|^.*File VLAK_M.ZIP\(.*\)Zip/VLAK_M.ZIP.*$|\1\n|g' | tr '\a' '\n' | grep 'Update date:' | cut -d, -f1 | sed -r 's|([0-9]+)\.([0-9]+)\.([0-9]+).|\n\3_\2_\1\n|g' | grep -E '^[0-9]+_[0-9]+_[0-9]+' + printf '%s' "${_pkgver}" } |