summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorfelics@felics-tablet2017-12-17 21:13:32 +0100
committerfelics@felics-tablet2017-12-17 21:13:32 +0100
commit9cb2bb6a0452568412f7ebabcae09f5afbf2e4a5 (patch)
tree6625c930aa75c6ac4a2a9f02ebf2b677f4140db3
parent0a2dddeefe685a07f6030863099c56704e5636a6 (diff)
downloadaur-9cb2bb6a0452568412f7ebabcae09f5afbf2e4a5.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 745e3c49fccd..ea8376971041 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -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
diff --git a/PKGBUILD b/PKGBUILD
index 41c02488fcef..05e90436739d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -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]+'
}