[arch-commits] Commit in khal/trunk (PKGBUILD)

David Runge dvzrv at archlinux.org
Wed Oct 10 21:59:37 UTC 2018


    Date: Wednesday, October 10, 2018 @ 21:59:36
  Author: dvzrv
Revision: 392129

upgpkg: khal 0.9.10-1

Upgrading to 0.9.10. Removing disabling of tests (dateutil problem fixed).

Modified:
  khal/trunk/PKGBUILD

----------+
 PKGBUILD |   31 ++++---------------------------
 1 file changed, 4 insertions(+), 27 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-10-10 21:59:01 UTC (rev 392128)
+++ PKGBUILD	2018-10-10 21:59:36 UTC (rev 392129)
@@ -7,7 +7,7 @@
 
 _name=khal
 pkgname=khal
-pkgver=0.9.9
+pkgver=0.9.10
 pkgrel=1
 pkgdesc='CLI calendar application build around CalDAV'
 arch=('any')
@@ -21,34 +21,12 @@
             'vdirsyncer: Synchronize CalDAV calendars')
 checkdepends=('python-pytest' 'python-freezegun' 'vdirsyncer')
 source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
-sha512sums=('cc38d8852e5bd47e266e23d48fbafa66aa1f84d67022780b7b0c8c8d4f54860be06a4d2675c49a48b4551fbdce1ec99762fd3b12a2ada69a0768d200697ef03e')
+sha512sums=('7618e34e35726670721dfd12e1434d5ffe4221ffad5d751ef26dc26edab4334c847582bbd4f50cfb93f37a07397ccc467e240adaf3dcf1d9446e0ca6faff7721')
 
-prepare() {
-  cd "${pkgname}-${pkgver}"
-  # removing dateutil pinning: https://github.com/pimutils/khal/issues/780
-  sed -e 's/python-dateutil\<\=2\.6\.1/python-dateutil/' \
-      -i setup.py
-  # disabling failing tests: https://github.com/pimutils/khal/issues/801
-  sed -e 's/test_event_rrule_recurrence_id/disabled_&/' \
-      -e 's/test_this_and_prior/disabled_&/' \
-      -e 's/test_event_rrule_this_and_future/disabled_&/' \
-      -e 's/test_event_rrule_this_and_future_multi_day_shift/disabled_&/' \
-      -e 's/test_two_calendars_same_uid/disabled_&/' \
-      -i tests/backend_test.py
-  sed -e 's/test_import/disabled_&/' \
-      -i tests/controller_test.py
-  sed -e 's/test_expand_invalid_exdate/disabled_&/' \
-      -e 's/test_expand_dtr_exdatez/disabled_&/' \
-      -e 's/test_expand_rrule_notz_until_z/disabled_&/' \
-      -e 's/test_until_notz/disabled_&/' \
-      -i tests/khalendar_utils_test.py
-}
-
 build() {
   cd "${pkgname}-${pkgver}"
   python setup.py build
-  cd doc
-  make man PYTHONPATH="${srcdir}/${pkgname}-${pkgver}"
+  make -C doc man PYTHONPATH="${PWD}"
 }
 
 check() {
@@ -63,8 +41,7 @@
     --prefix=/usr \
     --root="${pkgdir}"
   # executables
-  install -vDm 755 "bin/${pkgname}" "$pkgdir/usr/bin/${pkgname}"
-  install -vDm 755 "bin/i${pkgname}" "$pkgdir/usr/bin/i${pkgname}"
+  install -vDm 755 bin/{i,}"${pkgname}" -t "$pkgdir/usr/bin/"
   # configuration
   install -vDm 644 "${pkgname}.conf.sample" \
     "${pkgdir}/usr/share/doc/${pkgname}/examples/${pkgname}.conf"



More information about the arch-commits mailing list