summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorfelics@felics-tablet2017-12-17 21:13:03 +0100
committerfelics@felics-tablet2017-12-17 21:13:03 +0100
commit15d346f4576010d1e68a27caaaba49c678fa2787 (patch)
tree8e582c2c8f644b456ad34fc9fd1bf047aaa409e6
parent62f677224fa76c38d3b0259b1ebeab54170ad061 (diff)
downloadaur-15d346f4576010d1e68a27caaaba49c678fa2787.tar.gz
pkgver() updated.
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD7
2 files changed, 5 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 4aea974190b0..03fb0e60fda5 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = idos-timetable-data-chaps-trains-europe-2018-latest
pkgdesc = 2017/2018 Timetable data for the timetable search engines by CHAPS: European trains.
pkgver = 2017_12_12
- pkgrel = 1
+ pkgrel = 2
epoch = 0
url = http://chaps.cz/eng/download/idos/zip#kotvatt
arch = any
diff --git a/PKGBUILD b/PKGBUILD
index dbf09036a863..942262a90b7d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -9,7 +9,7 @@ _pkgname="idos-timetable-data-chaps-trains-europe-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: European trains."
arch=(any)
url="http://chaps.cz/eng/download/idos/zip#kotvatt"
@@ -73,9 +73,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]+'
}
package() {