diff options
author | felics@felics-tablet | 2016-05-19 23:46:19 +0200 |
---|---|---|
committer | felics@felics-tablet | 2016-05-19 23:46:19 +0200 |
commit | 5f8e8ed05b832456dc6b4261f04883fe4e0dc65a (patch) | |
tree | a81802093ab837799c278fdfeb453be70ba37f4f | |
download | aur-5f8e8ed05b832456dc6b4261f04883fe4e0dc65a.tar.gz |
Initial commit.
-rw-r--r-- | .SRCINFO | 22 | ||||
-rw-r--r-- | PKGBUILD | 68 | ||||
-rw-r--r-- | license-dummy.txt | 10 |
3 files changed, 100 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..e679480d5c7b --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,22 @@ +pkgbase = idos-timetable-additionalinfo-chaps-bus-latest + pkgdesc = Floor plans of some Czech bus stations/ stops, to be used with the timetable search engines by CHAPS. + pkgver = 2016_2_19 + pkgrel = 1 + url = http://chaps.cz/eng/download/idos/zip#kotvainf + arch = any + license = custom + makedepends = wget + depends = idos-timetable-data-bus-cz + provides = idos-timetable-additionalinfo-chaps-bus=2016_2_19 + provides = idos-timetable-additionalinfo-buses=2016_2_19 + provides = idos-timetable-additionalinfo-buses-cz=2016_2_19 + conflicts = idos-timetable-additionalinfo-chaps-bus + source = c2.zip::http://ttakt.chaps.cz/TTAktual/Win/Zip/C2.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-bus-latest + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..5a04d143b095 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,68 @@ +# Maintainer: dreieck + +_pkgname=idos-timetable-additionalinfo-chaps-bus +pkgname="${_pkgname}-latest" +pkgver=2016_2_19 +pkgrel=1 +pkgdesc="Floor plans of some Czech bus stations/ stops, 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-bus-cz" + ) + +makedepends=( + "wget" +) + +optdepends=() + +provides=( + "${_pkgname}=${pkgver}" + + "idos-timetable-additionalinfo-buses=${pkgver}" + + "idos-timetable-additionalinfo-buses-cz=${pkgver}" +) + +conflicts=( + "${_pkgname}" +) + +source=( + "c2.zip::http://ttakt.chaps.cz/TTAktual/Win/Zip/C2.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 C2.ZIP\(.*\)Zip/C2.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 |