diff options
author | felics@felics-tablet | 2016-05-28 09:51:50 +0200 |
---|---|---|
committer | felics@felics-tablet | 2016-05-28 09:51:50 +0200 |
commit | 40ebca3840440befbfff5916ccfdacd59040e79c (patch) | |
tree | 601a3ed56f1e567abe0f829ac73b68227d628edc | |
download | aur-40ebca3840440befbfff5916ccfdacd59040e79c.tar.gz |
Initial commit.
-rw-r--r-- | .SRCINFO | 27 | ||||
-rw-r--r-- | PKGBUILD | 75 | ||||
-rw-r--r-- | license-dummy.txt | 10 |
3 files changed, 112 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..709a9a7acc81 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,27 @@ +pkgbase = idos-timetable-maps-chaps-trains-europe-latest + pkgdesc = Map data for the timetable search engines by CHAPS: European railway. + pkgver = 2016_4_6 + pkgrel = 1 + epoch = 0 + url = http://chaps.cz/eng/download/idos/zip#kotvamap + arch = any + groups = idos-timetable + license = custom + makedepends = wget + depends = idos-timetable-data-trains + provides = idos-timetable-maps-chaps-trains-europe=2016_4_6 + provides = idos-timetable-maps=2016_4_6 + provides = idos-timetable-maps-trains=2016_4_6 + provides = idos-timetable-maps-trains-cz=2016_4_6 + provides = idos-timetable-maps-trains-sk=2016_4_6 + provides = idos-timetable-maps-trains-europe=2016_4_6 + conflicts = idos-timetable-maps-chaps-trains-europe + source = vlak_m.zip::http://ttakt.chaps.cz/TTAktual/Win/Zip/VLAK_M.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-maps-chaps-trains-europe-latest + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..3ca78af63385 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,75 @@ +# Maintainer: dreieck + +_pkgname=idos-timetable-maps-chaps-trains-europe +pkgname="${_pkgname}-latest" +epoch=0 +pkgver=2016_4_6 +pkgrel=1 +pkgdesc="Map data for the timetable search engines by CHAPS: European railway." +arch=(any) +url="http://chaps.cz/eng/download/idos/zip#kotvamap" +license=('custom') + +groups=( + "idos-timetable" + ) + +depends=( + # "idos-timetable-data" + "idos-timetable-data-trains" + ) + +makedepends=( + "wget" +) + +optdepends=() + +provides=( + "${_pkgname}=${pkgver}" + + "idos-timetable-maps=${pkgver}" + "idos-timetable-maps-trains=${pkgver}" + + "idos-timetable-maps-trains-cz=${pkgver}" + "idos-timetable-maps-trains-sk=${pkgver}" + "idos-timetable-maps-trains-europe=${pkgver}" +) + +conflicts=( + "${_pkgname}" +) + +source=( + "vlak_m.zip::http://ttakt.chaps.cz/TTAktual/Win/Zip/VLAK_M.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 VLAK_M.ZIP\(.*\)Zip/VLAK_M.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 |