khal: rebuild for Python 3.11

This commit is contained in:
Andrew J. Hesford 2022-09-19 21:09:47 -04:00
parent 378173f912
commit 3eb232b302

View File

@ -1,7 +1,7 @@
# Template file for 'khal'
pkgname=khal
version=0.10.5
revision=1
revision=2
build_style=python3-module
hostmakedepends="python3-setuptools python3-Sphinx python3-sphinxcontrib
python3-click python3-click-log python3-configobj python3-dateutil
@ -28,12 +28,18 @@ pre_build() {
post_install() {
vlicense COPYING
local _pypath="${DESTDIR}/${py3_sitelib}"
if [ "$CROSS_BUILD" ]; then
_pypath="${_pypath}:${XBPS_CROSS_BASE}/${py3_lib}"
fi
for sh in bash fish zsh; do
env PYTHONPATH=$DESTDIR/$py3_sitelib _KHAL_COMPLETE="${sh}_source" $DESTDIR/usr/bin/khal > "khal.${sh}"
PYTHONPATH="${_pypath}" _KHAL_COMPLETE="${sh}_source" $DESTDIR/usr/bin/khal > "khal.${sh}"
vcompletion "khal.${sh}" $sh
done
vsconf khal.conf.sample
cd doc/
PYTHONPATH=$DESTDIR/$py3_sitelib make man
PYTHONPATH="${_pypath}" make man
vman build/man/khal.1
}