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

Daniel M. Capella polyzen at gemini.archlinux.org
Sun Jun 26 18:43:19 UTC 2022


    Date: Sunday, June 26, 2022 @ 18:43:18
  Author: polyzen
Revision: 1239547

upgpkg: khal 0.10.5-1

Modified:
  khal/trunk/PKGBUILD

----------+
 PKGBUILD |   30 ++++++++++++++++--------------
 1 file changed, 16 insertions(+), 14 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-06-26 18:13:57 UTC (rev 1239546)
+++ PKGBUILD	2022-06-26 18:43:18 UTC (rev 1239547)
@@ -4,12 +4,10 @@
 # Contributor: Hugo Osvaldo Barrera <hugo at barrera.io>
 # Contributor: Thomas Weißschuh <thomas t-8ch de>
 # Contributor: Étienne Deparis <etienne [at] depar [dot] is>
-# Contributor: Daniel M. Capella <polyzen at archlinux.info>
 
-_name=khal
 pkgname=khal
-pkgver=0.10.4
-pkgrel=2
+pkgver=0.10.5
+pkgrel=1
 pkgdesc='CLI calendar application build around CalDAV'
 arch=('any')
 url="https://lostpackets.de/khal/"
@@ -16,14 +14,14 @@
 license=('MIT')
 makedepends=('python-setuptools-scm' 'python-sphinxcontrib-newsfeed')
 depends=('python-atomicwrites' 'python-click' 'python-click-log'
-'python-configobj' 'python-dateutil' 'python-icalendar' 'python-pytz'
-'python-pyxdg' 'python-urwid' 'python-tzlocal')
+         'python-configobj' 'python-dateutil' 'python-icalendar' 'python-pytz'
+         'python-pyxdg' 'python-urwid' 'python-tzlocal')
 optdepends=('python-setproctitle: Set process name'
             'vdirsyncer: Synchronize CalDAV calendars')
 checkdepends=('python-pytest' 'python-freezegun' 'vdirsyncer')
-source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
-sha256sums=('3fdb980a9a61c0206d7a82b16f77b408a4f341a2b866b9c9fcf6a641850d129f')
-b2sums=('0cb9deb793f577bbcedcbba4788988973ee9d0ab71fdd30a01142a54434767d74b1d10e5bfa5f6a2feb9f18a8a9fe22717d4a38a07ab5e30b331c87b79a79f39')
+source=("https://files.pythonhosted.org/packages/source/${pkgname::1}/${pkgname}/${pkgname}-${pkgver}.tar.gz")
+sha256sums=('4eefb7ac302a26d8606db392817587a4ed94c27a15bf2ea211614a464fcf0c76')
+b2sums=('195e61fcff7cff1308f2819ec54c5733acebb5ace18f88afa8fc561926857dab3e0e0b82d1f7e3e0235e69ed9ad56544d6eeb95a9e9829dc078d49ebf96c0485')
 
 build() {
   cd "${pkgname}-${pkgver}"
@@ -36,9 +34,7 @@
   env
   export PYTHONPATH="build:${PYTHONPATH}"
   export LC_ALL="C"
-  # the tests are very fragile
-  # https://github.com/pimutils/khal/issues/860"
-  pytest -v -k "not test_only_update_old_event"
+  pytest -v
 }
 
 package() {
@@ -54,8 +50,14 @@
   # man page
   install -vDm 644 doc/build/man/${pkgname}.1 \
     -t "${pkgdir}/usr/share/man/man1/"
-  # zsh completion
-  install -vDm 644 "misc/__${pkgname}" \
+  # completions
+  install -vd \
+    "${pkgdir}/usr/share/"{bash-completion/completions,fish/vendor_completions.d,zsh/site-functions}
+  _KHAL_COMPLETE=bash_source "$pkgdir"/usr/bin/khal > \
+    "${pkgdir}/usr/share/bash-completion/completions/${pkgname}"
+  _KHAL_COMPLETE=fish_source "$pkgdir"/usr/bin/khal > \
+    "${pkgdir}/usr/share/fish/vendor_completions.d/${pkgname}.fish"
+  _KHAL_COMPLETE=zsh_source "$pkgdir"/usr/bin/khal > \
     "${pkgdir}/usr/share/zsh/site-functions/_${pkgname}"
   # license
   install -vDm 644 COPYING -t "${pkgdir}/usr/share/licenses/${pkgname}"



More information about the arch-commits mailing list