aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGalen Abell <galen@galenabell.com>2023-11-24 08:53:48 +0100
committeromni <omni+alpine@hack.org>2023-11-27 13:35:13 +0000
commit78669e890b8fd54463b35c74f8686fb2fc3b1740 (patch)
treef3951e79c44372b4c2ecc1a96149ce46652124a9
parentcc4877af7128a7d1f8c4ab6c082ebe12c3e40b7e (diff)
testing/khard: upgrade to 0.19.1
-rw-r--r--testing/khard/APKBUILD34
1 files changed, 25 insertions, 9 deletions
diff --git a/testing/khard/APKBUILD b/testing/khard/APKBUILD
index de87b7f461d..be04791e98c 100644
--- a/testing/khard/APKBUILD
+++ b/testing/khard/APKBUILD
@@ -1,11 +1,11 @@
# Contributor: Galen Abell <galen@galenabell.com>
# Maintainer: Galen Abell <galen@galenabell.com>
pkgname=khard
-pkgver=0.18.0
-pkgrel=1
+pkgver=0.19.1
+pkgrel=0
pkgdesc="Console CardDAV client"
url="https://github.com/lucc/khard"
-arch="noarch !x86" # deps not available on x86
+arch="noarch"
license="GPL-3.0-only"
depends="
python3
@@ -16,31 +16,47 @@ depends="
py3-vobject
"
makedepends="
+ py3-gpep517
py3-setuptools
py3-setuptools_scm
py3-sphinx
- py3-sphinx-autoapi
- py3-sphinx-autodoc-typehints
+ py3-wheel
"
checkdepends="py3-pytest"
subpackages="$pkgname-doc $pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/k/khard/khard-$pkgver.tar.gz"
+prepare() {
+ default_prepare
+
+ # Remove some dependencies from the sphinx config; we only generate the manpages, and
+ # they don't require these to build.
+ sed -i \
+ -e '/autoapi.extension/d' \
+ -e '/sphinx_autodoc_typehints/d' \
+ doc/source/conf.py
+}
+
build() {
- python3 setup.py build
+ gpep517 build-wheel \
+ --wheel-dir dist \
+ --output-fd 3 3>&1 >&2
make -C doc man
}
check() {
- pytest -v -s
+ python3 -m venv --clear --system-site-packages testenv
+ testenv/bin/python3 -m installer dist/*.whl
+ testenv/bin/python3 -m pytest -s
}
package() {
- python3 setup.py install --skip-build --root="$pkgdir"
+ python3 -m installer -d "$pkgdir" \
+ dist/*.whl
install -Dm644 doc/build/man/$pkgname.1 "$pkgdir"/usr/share/man/man1/$pkgname.1
install -Dm644 doc/build/man/$pkgname.conf.5 "$pkgdir"/usr/share/man/man5/$pkgname.conf.5
}
sha512sums="
-eb1e82b5350febdd388b251514562a2d3776d5f5c8b3c70cd73153eaedc7ac3504b25d88179eced26c96ced90785fac9267cc23b2425fac816c233a2e1f2b9df khard-0.18.0.tar.gz
+619678902abee2561f2cef8d525d9688269f9f4da244b1c5cf97a9c2f15f5d08f80d09bc08304dfe3a7ca44dd5082e0152c5dce82063b6f98ea12b961b34bdf4 khard-0.19.1.tar.gz
"