summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorfelics@felics-tablet2017-12-17 20:53:07 +0100
committerfelics@felics-tablet2017-12-17 20:53:07 +0100
commitcb9703c5fe71b9b9ed70112829692fa107a23439 (patch)
tree9856d269831802339042341cb371282a29cdb261
parent058592220d0364448616a6dc4413fb8335d1301b (diff)
downloadaur-cb9703c5fe71b9b9ed70112829692fa107a23439.tar.gz
Updated pkgver()
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD10
2 files changed, 8 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index dc79ed4897f0..32f04fff35ee 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = idos-timetable-additionalinfo-chaps-mhd-idsjmk-latest
pkgdesc = Photographs of some stops within the IDSJMK (Brno region) public transport area, to be used with the timetable search engines by CHAPS.
pkgver = 2016_5_24
- pkgrel = 3
+ pkgrel = 4
epoch = 0
url = http://chaps.cz/eng/download/idos/zip#kotvainf
arch = any
diff --git a/PKGBUILD b/PKGBUILD
index 03161994ae6e..349fcf190a40 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -6,7 +6,7 @@ _pkgname=idos-timetable-additionalinfo-chaps-mhd-idsjmk
pkgname="${_pkgname}-latest"
epoch=0
pkgver=2016_5_24
-pkgrel=3
+pkgrel=4
pkgdesc="Photographs of some stops within the IDSJMK (Brno region) public transport area, to be used with the timetable search engines by CHAPS."
arch=('any')
url="http://chaps.cz/eng/download/idos/zip#kotvainf"
@@ -36,8 +36,10 @@ conflicts=(
"${_pkgname}"
)
+_target="cidsjmk.zip"
+
source=(
- "cidsjmk.zip::http://ttakt.chaps.cz/TTAktual/Win/Zip/CIDSJMK.ZIP"
+ "${_target}::http://ttakt.chaps.cz/TTAktual/Win/Zip/CIDSJMK.ZIP"
"IDOS-Licence.pdf::http://chaps.cz/files/idos/IDOS-Licence.pdf"
"license-dummy.txt"
)
@@ -49,7 +51,9 @@ sha256sums=(
)
pkgver() {
- wget -nv -O- "${url}" | tr -d '\a' | tr '\n' '\a' | sed 's|^.*File CIDSJMK.ZIP\(.*\)Zip/CIDSJMK.ZIP.*$|\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]+'
+ date -r "${srcdir}/${_target}" +"%Y_%m_%d"
+
+ # wget -nv -O- "${url}" | tr -d '\a' | tr '\n' '\a' | sed 's|^.*File CIDSJMK.ZIP\(.*\)Zip/CIDSJMK.ZIP.*$|\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]+'
}