summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorfelics@felics-tablet2016-05-19 23:40:35 +0200
committerfelics@felics-tablet2016-05-19 23:40:35 +0200
commit6685467f3399e9626441fcb5b50363cb413225f5 (patch)
tree5568d36a8c1ceb8c7403280d9b9e9a319dc75f92
downloadaur-6685467f3399e9626441fcb5b50363cb413225f5.tar.gz
Initial commit.
-rw-r--r--.SRCINFO23
-rw-r--r--IDOS-Licence.pdfbin0 -> 156075 bytes
-rw-r--r--PKGBUILD69
-rw-r--r--license-dummy.txt10
4 files changed, 102 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..572986c3da53
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,23 @@
+pkgbase = idos-timetable-additionalinfo-chaps-trains-latest
+ pkgdesc = Links for additional information on Czech trains and railway stations, to be used with the timetable search engines by CHAPS.
+ pkgver = 2016_5_4
+ pkgrel = 1
+ epoch = 0
+ url = http://chaps.cz/eng/download/idos/zip#kotvainf
+ arch = any
+ license = custom
+ makedepends = wget
+ depends = idos-timetable-data-trains-cz
+ provides = idos-timetable-additionalinfo-chaps-trains=2016_5_4
+ provides = idos-timetable-additionalinfo-trains=2016_5_4
+ provides = idos-timetable-additionalinfo-trains-cz=2016_5_4
+ conflicts = idos-timetable-additionalinfo-chaps-trains
+ source = c1.zip::http://ttakt.chaps.cz/TTAktual/Win/Zip/C1.ZIP
+ source = IDOS-Licence.pdf::http://chaps.cz/files/idos/IDOS-Licence.pdf
+ source = license-dummy.txt
+ sha256sums = SKIP
+ sha256sums = e904d167ccdcfb2743f4cfd596aaa9dce8b751fb5c8315b972b42b7cbb3189e6
+ sha256sums = c6bb216055d3670d3100b7a74e04ce0644030f365f4349a09e630ef60fbcb9a4
+
+pkgname = idos-timetable-additionalinfo-chaps-trains-latest
+
diff --git a/IDOS-Licence.pdf b/IDOS-Licence.pdf
new file mode 100644
index 000000000000..a1dd43f145d1
--- /dev/null
+++ b/IDOS-Licence.pdf
Binary files differ
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..123b43608be3
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,69 @@
+# Maintainer: dreieck
+
+_pkgname=idos-timetable-additionalinfo-chaps-trains
+pkgname="${_pkgname}-latest"
+epoch=0
+pkgver=2016_5_4
+pkgrel=1
+pkgdesc="Links for additional information on Czech trains and railway stations, to be used with the timetable search engines by CHAPS."
+arch=('any')
+url="http://chaps.cz/eng/download/idos/zip#kotvainf"
+license=('custom')
+
+depends=(
+ # "idos-timetable-data"
+ # "idos-timetable-data-chaps-all"
+ "idos-timetable-data-trains-cz"
+ )
+
+makedepends=(
+ "wget"
+)
+
+optdepends=()
+
+provides=(
+ "${_pkgname}=${pkgver}"
+
+ "idos-timetable-additionalinfo-trains=${pkgver}"
+
+ "idos-timetable-additionalinfo-trains-cz=${pkgver}"
+)
+
+conflicts=(
+ "${_pkgname}"
+)
+
+source=(
+ "c1.zip::http://ttakt.chaps.cz/TTAktual/Win/Zip/C1.ZIP"
+ "IDOS-Licence.pdf::http://chaps.cz/files/idos/IDOS-Licence.pdf"
+ "license-dummy.txt"
+)
+
+sha256sums=(
+ 'SKIP'
+ "e904d167ccdcfb2743f4cfd596aaa9dce8b751fb5c8315b972b42b7cbb3189e6"
+ "c6bb216055d3670d3100b7a74e04ce0644030f365f4349a09e630ef60fbcb9a4"
+)
+
+pkgver() {
+ wget -nv -O- "${url}" | tr -d '\a' | tr '\n' '\a' | sed 's|^.*File C1.ZIP\(.*\)Zip/C1.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]+'
+}
+
+
+package() {
+ _instdirbase='/opt/idos-timetable'
+ _instdir="${pkgdir}/${_instdirbase}"
+ install -d -m755 "${_instdir}"
+
+ cp -r "${srcdir}"/Data* "${_instdir}/"
+ chmod 755 "${_instdir}"/Data*
+ chmod 644 "${_instdir}"/Data*/*
+
+ install -d -m755 "${pkgdir}/usr/share/doc/${_pkgname}"
+ echo "${url}" > "${pkgdir}/usr/share/doc/${_pkgname}/info.url"
+ chmod 644 "${pkgdir}/usr/share/doc/${_pkgname}/info.url"
+
+ install -D -m644 "${srcdir}/license-dummy.txt" "${pkgdir}/usr/share/licenses/${pkgname}/copying.txt"
+ install -D -m644 "${srcdir}/IDOS-Licence.pdf" "${pkgdir}/usr/share/licenses/${pkgname}/IDOS-Licence.pdf"
+}
diff --git a/license-dummy.txt b/license-dummy.txt
new file mode 100644
index 000000000000..f94d2f374c02
--- /dev/null
+++ b/license-dummy.txt
@@ -0,0 +1,10 @@
+We do not know the license. Assume commercial by
+
+ CHAPS spol. s r.o.
+ Bráfova 1617/21
+ CZ-616 00 Brno
+ Czech republic
+
+ http://www.chaps.cz/
+
+Upstream URL: http://www.chaps.cz/eng/download/idos#kotvaprg