diff options
author | felics@felics-tablet | 2016-05-20 11:44:09 +0200 |
---|---|---|
committer | felics@felics-tablet | 2016-05-20 11:44:09 +0200 |
commit | 4ba7388a2a0c90c8c5cb1e5f067a50c8ef95198d (patch) | |
tree | c31db96d2ecc89490d4221bd5dc72ef380788e38 | |
download | aur-4ba7388a2a0c90c8c5cb1e5f067a50c8ef95198d.tar.gz |
Initial commit.
-rw-r--r-- | .SRCINFO | 23 | ||||
-rw-r--r-- | PKGBUILD | 61 | ||||
-rw-r--r-- | license-dummy.txt | 10 |
3 files changed, 94 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..38594b335f07 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,23 @@ +pkgbase = idos-timetable-data-chaps-trains-common-latest + pkgdesc = Common files needed for train timetable data for the timetable search engines by CHAPS. + pkgver = 2016_5_19 + pkgrel = 1 + epoch = 0 + url = http://chaps.cz/eng/download/idos/zip#kotvatt + arch = any + license = custom + makedepends = wget + depends = idos-timetable-browser + provides = idos-timetable-data-chaps-trains-common=2016_5_19 + provides = idos-timetable-data-trains-common=2016_5_19 + conflicts = idos-timetable-data-chaps-trains-common + conflicts = idos-timetable-data-chaps-all + source = vlak16c.zip::http://ttakt.chaps.cz/TTAktual/Win/Zip/VLAK16C.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-data-chaps-trains-common-latest + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..d87f6aca1233 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,61 @@ +# Maintainer: dreieck + +_pkgname=idos-timetable-data-chaps-trains-common +pkgname="${_pkgname}-latest" +epoch=0 +pkgver=2016_5_19 +pkgrel=1 +pkgdesc="Common files needed for train timetable data for the timetable search engines by CHAPS." +arch=(any) +url="http://chaps.cz/eng/download/idos/zip#kotvatt" +license=('custom') + +depends=( + "idos-timetable-browser" + ) + +makedepends=( + "wget" +) + +optdepends=() + +provides=( + "${_pkgname}=${pkgver}" + + "idos-timetable-data-trains-common=${pkgver}" +) + +conflicts=( + "${_pkgname}" + "idos-timetable-data-chaps-all" +) + +source=( + "vlak16c.zip::http://ttakt.chaps.cz/TTAktual/Win/Zip/VLAK16C.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 VLAK16C.ZIP\(.*\)Zip/VLAK16C.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}" + + install -d -m755 "${_instdir}/Data1" + install -D -m644 "${srcdir}/Data1/Vlak.ttr" "${_instdir}/Data1/Vlak.ttr" + + 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 |