Commit b116f3ee authored by Galen Abell's avatar Galen Abell Committed by alice
Browse files

testing/khal: upgrade to 0.10.5

parent 1023805d
......@@ -2,8 +2,8 @@
# Maintainer: Galen Abell <galen@galenabell.com>
pkgname=khal
_pyname=$pkgname
pkgver=0.10.4
pkgrel=1
pkgver=0.10.5
pkgrel=0
pkgdesc="CLI calendar application build around CalDAV"
url="https://lostpackets.de/khal"
arch="noarch"
......@@ -22,14 +22,22 @@ depends="
py3-urwid
py3-xdg
"
makedepends="py3-setuptools py3-setuptools_scm py3-sphinx py3-sphinxcontrib-newsfeed"
makedepends="py3-setuptools py3-setuptools_scm py3-sphinx py3-sphinxcontrib-newsfeed bash"
checkdepends="py3-pytest py3-freezegun vdirsyncer"
subpackages="$pkgname-doc"
source="https://files.pythonhosted.org/packages/source/${_pyname%${_pyname#?}}/$_pyname/$_pyname-$pkgver.tar.gz"
subpackages="
$pkgname-doc
$pkgname-bash-completion
$pkgname-zsh-completion
$pkgname-fish-completion
"
source="https://files.pythonhosted.org/packages/source/${_pyname%"${_pyname#?}"}/$_pyname/$_pyname-$pkgver.tar.gz"
build() {
python3 setup.py build
make -C doc man PYTHONPATH="$PWD"
for shell in bash zsh fish; do
PYTHONPATH="$PWD" _KHAL_COMPLETE=${shell}_source python3 ./bin/khal >khal.$shell
done
}
check() {
......@@ -53,8 +61,15 @@ check() {
package() {
python3 setup.py install --prefix=/usr --root="$pkgdir"
install -Dm644 doc/build/man/$pkgname.1 "$pkgdir"/usr/share/man/man1/$pkgname.1
install -Dm644 khal.bash \
"$pkgdir"/usr/share/bash-completion/completions/khal
install -Dm644 khal.zsh \
"$pkgdir"/usr/share/zsh/site-functions/_khal
install -Dm644 khal.fish \
"$pkgdir"/usr/share/fish/completions/khal.fish
}
sha512sums="
b32f1bfe5d3a3976278726a6570eb345a5ad44f63a52b75f045fd0509d145edd5b76e11a10acffd9c3982edc124f93daec34a37c39299c2311796c0314016eb6 khal-0.10.4.tar.gz
f7b1e4d4934757ec7458fc4e73c6b6c5ee6b1c64f6cdc3e61771a2f05041515e4afb73b4a17cbc577747039b689ddd66503e120648c4bfe4e33113a3de6f3d14 khal-0.10.5.tar.gz
"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment