summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD15
2 files changed, 9 insertions, 8 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 3a1eb1a0425a..65c710a24f76 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = idos-timetable-data-zsr-europe+sk-2018-latest
pkgdesc = 2017/2018 Timetable data for the offline railway and other public transport timetable search engines by CHAPS: European and Slovak train data, provided by ŽSR.
pkgver = 2017_12_14
- pkgrel = 1
+ pkgrel = 2
epoch = 0
url = http://www.zsr.sk/slovensky/cestovny-poriadok-vlakov-osobnej-dopravy-cp2017-2018-a-aktualizacia-dat-na-stiahnutie.html?page_id=5772
arch = any
diff --git a/PKGBUILD b/PKGBUILD
index 01749be8ccb2..39895b84d3ad 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -9,7 +9,7 @@ _pkgname="idos-timetable-data-zsr-europe+sk-20${_year}"
pkgname="${_pkgname}-latest"
epoch=0
pkgver=2017_12_14
-pkgrel=1
+pkgrel=2
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 ŽSR."
arch=(any)
# url="http://www2.zsr.sk/pre-cestujucich/elis-vas-pocitac/instalacny-program-elis-k-cestovnemu-poriadku-cp-2017-2018.html"
@@ -77,13 +77,14 @@ sha256sums=(
)
pkgver() {
- date -r "${srcdir}/${_target0}" +"%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}/${_target0}" +"%Y_%m_%d"
- # _day="$(basename "${_source0}" .exe | cut -d- -f4)"
- # _month="$(basename "${_source0}" .exe | cut -d- -f3)"
- # _year="$(basename "${_source0}" .exe | cut -d- -f2)"
- #
- # echo "${_year}_${_month}_${_day}"
+ _day="$(basename "${_source0}" .exe | cut -d- -f4)"
+ _month="$(basename "${_source0}" .exe | cut -d- -f3)"
+ _year="$(basename "${_source0}" .exe | cut -d- -f2)"
+
+ echo "${_year}_${_month}_${_day}"
}