diff options
author | felics@felics-tablet | 2017-12-17 21:13:32 +0100 |
---|---|---|
committer | felics@felics-tablet | 2017-12-17 21:13:32 +0100 |
commit | 9cb2bb6a0452568412f7ebabcae09f5afbf2e4a5 (patch) | |
tree | 6625c930aa75c6ac4a2a9f02ebf2b677f4140db3 | |
parent | 0a2dddeefe685a07f6030863099c56704e5636a6 (diff) | |
download | aur-9cb2bb6a0452568412f7ebabcae09f5afbf2e4a5.tar.gz |
pkgver() updated.
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 7 |
2 files changed, 5 insertions, 4 deletions
@@ -1,7 +1,7 @@ pkgbase = idos-timetable-data-chaps-trains-idol-2018-latest pkgdesc = 2017/2018 Timetable data for the timetable search engines by CHAPS: Trains in Liberec public transport reagion (IDOL). Note that this timetable needs the purchased version of IDOS to run. pkgver = 2017_12_12 - pkgrel = 1 + pkgrel = 2 epoch = 0 url = http://chaps.cz/eng/download/idos/zip#kotvatt arch = any @@ -9,7 +9,7 @@ _pkgname="idos-timetable-data-chaps-trains-idol-20${_year}" pkgname="${_pkgname}-latest" epoch=0 pkgver=2017_12_12 -pkgrel=1 +pkgrel=2 pkgdesc="20${_prevyear}/20${_year} Timetable data for the timetable search engines by CHAPS: Trains in Liberec public transport reagion (IDOL). Note that this timetable needs the purchased version of IDOS to run." arch=(any) url="http://chaps.cz/eng/download/idos/zip#kotvatt" @@ -71,9 +71,10 @@ sha256sums=( ) pkgver() { - date -r "${srcdir}/${_target}" +"%Y_%m_%d" + # Do not use metadata of the source file, but do website parsing: So we do not need to download the file to (AUR-)update the package version with our own crude hacked script 'idos-aur-update-versions.sh'. + #date -r "${srcdir}/${_target}" +"%Y_%m_%d" - # 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]+' + 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]+' } |