summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorfelics2019-03-20 12:12:33 +0100
committerfelics2019-03-20 12:12:33 +0100
commit7e272b800b5409661b1442b5e49e74a78b3f413d (patch)
tree88f9915c0c6673c9f8e27b2119c3822a72aa86c7
parent3c795efde2dcb78345ef35dfd53d7468c7929686 (diff)
downloadaur-7e272b800b5409661b1442b5e49e74a78b3f413d.tar.gz
HTTPS Certificates not checked when determining version. Workaround for expired certificate.
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD10
2 files changed, 12 insertions, 12 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 5f93d4bf3764..20c7fcb54d3f 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = idos-timetable-data-chaps-trains-europe-2019-latest
pkgdesc = 2018/2019 Timetable data for the timetable search engines by CHAPS: European trains.
- pkgver = 2019_3_7
+ pkgver = 2019_3_19
pkgrel = 1
epoch = 0
url = http://chaps.cz/eng/download/idos/zip#kotvatt
@@ -15,14 +15,14 @@ pkgbase = idos-timetable-data-chaps-trains-europe-2019-latest
optdepends = idos-timetable-maps-trains-sk: For displaying routes on (for Slovakia only).
optdepends = idos-timetable-additionalinfo-trains-europe: For (links to) additional information about train composition and stations.
optdepends = idos-timetable-additionalinfo-trains-sk: For (links to) additional information about train composition and stations (for Slovakia only).
- provides = idos-timetable-data-chaps-trains-europe-2019=2019_3_7
- provides = idos-timetable-data=2019_3_7
- provides = idos-timetable-data-trains=2019_3_7
- provides = idos-timetable-data-trains-europe=2019_3_7
- provides = idos-timetable-data-trains-europe-2019=2019_3_7
+ provides = idos-timetable-data-chaps-trains-europe-2019=2019_3_19
+ provides = idos-timetable-data=2019_3_19
+ provides = idos-timetable-data-trains=2019_3_19
+ provides = idos-timetable-data-trains-europe=2019_3_19
+ provides = idos-timetable-data-trains-europe-2019=2019_3_19
conflicts = idos-timetable-data-chaps-trains-europe-2019
replaces = idos-timetable-data-chaps-trains-europe-latest
- replaces = idos-timetable-data-chaps-trains-europe-2019<=2019_3_7
+ replaces = idos-timetable-data-chaps-trains-europe-2019<=2019_3_19
source = vlak19e.zip::http://ttakt.chaps.cz/TTAktual/Win/Zip/VLAK19E.ZIP
source = IDOS-Licence.pdf::http://chaps.cz/files/idos/IDOS-Licence.pdf
source = license-dummy.txt
diff --git a/PKGBUILD b/PKGBUILD
index 60186e363cab..d40ae3db48c8 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -8,7 +8,7 @@ _prevyear="$(( ${_year} - 1 ))"
_pkgname="idos-timetable-data-chaps-trains-europe-20${_year}"
pkgname="${_pkgname}-latest"
epoch=0
-pkgver=2019_3_7
+pkgver=2019_3_19
pkgrel=1
pkgdesc="20${_prevyear}/20${_year} Timetable data for the timetable search engines by CHAPS: European trains."
arch=(any)
@@ -39,10 +39,10 @@ optdepends=(
provides=(
"${_pkgname}=${pkgver}"
-
+
"idos-timetable-data=${pkgver}"
"idos-timetable-data-trains=${pkgver}"
-
+
"idos-timetable-data-trains-europe=${pkgver}"
"idos-timetable-data-trains-europe-20${_year}=${pkgver}"
)
@@ -76,8 +76,8 @@ sha256sums=(
pkgver() {
# 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 --user-agent='' --dns-timeout=30 --connect-timeout=30 --read-timeout=30 --no-check-certificate -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() {