2019-11-02 23:09:00 +01:00
|
|
|
# Description: CLI calendar application build around CalDAV
|
|
|
|
# URL: https://lostpackets.de/khal/
|
|
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
2021-11-03 16:29:59 +01:00
|
|
|
# Depends on: python3-atomicwrites python3-click-log python3-configobj python3-icalendar python3-pytz-deprecation-shim python3-pyxdg python3-tzlocal python3-urwid
|
2019-11-02 23:09:00 +01:00
|
|
|
|
|
|
|
name=khal
|
2023-06-07 23:00:27 +02:00
|
|
|
version=0.11.2
|
2023-04-23 18:04:37 +02:00
|
|
|
release=1
|
2019-11-02 23:09:00 +01:00
|
|
|
source=(https://files.pythonhosted.org/packages/source/k/$name/$name-$version.tar.gz)
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $name-$version
|
2023-04-23 18:04:37 +02:00
|
|
|
|
2020-11-03 18:54:40 +00:00
|
|
|
/usr/bin/python3 setup.py build
|
|
|
|
/usr/bin/python3 setup.py install \
|
2019-11-02 23:09:00 +01:00
|
|
|
--prefix=/usr \
|
|
|
|
--optimize=1 \
|
|
|
|
--skip-build \
|
|
|
|
--root=$PKG
|
2023-04-23 18:04:37 +02:00
|
|
|
|
|
|
|
if prt-get isinst bash-completion; then
|
|
|
|
mkdir -p $PKG/usr/share/bash-completion/completions
|
|
|
|
_KHAL_COMPLETE=bash_source khal >> $PKG/usr/share/bash-completion/completions/khal.bash
|
|
|
|
fi
|
|
|
|
|
|
|
|
if prt-get isinst zsh; then
|
|
|
|
mkdir -p $PKG/usr/share/zsh/site-functions
|
|
|
|
_KHAL_COMPLETE=zsh_source khal >> $PKG/usr/share/zsh/site-functions/_khal
|
2019-11-02 23:09:00 +01:00
|
|
|
fi
|
|
|
|
}
|