aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGalen Abell <galen@galenabell.com>2020-08-13 13:42:14 +0200
committerLeo <thinkabit.ukim@gmail.com>2020-08-16 23:18:47 +0000
commit8dc03a373c5633f59873fcb87c777b2ca632c18a (patch)
treee2270768974bc0441ddc03c4369246bf0a8665a2
parent8ef1d8a5fb78c254ec298f24a714ef14479dabe2 (diff)
downloadaports-8dc03a373c5633f59873fcb87c777b2ca632c18a.tar.gz
aports-8dc03a373c5633f59873fcb87c777b2ca632c18a.tar.bz2
aports-8dc03a373c5633f59873fcb87c777b2ca632c18a.tar.xz
testing/khard: new aport
https://github.com/scheibler/khard Console CardDAV client testing/
-rw-r--r--testing/khard/APKBUILD45
1 files changed, 45 insertions, 0 deletions
diff --git a/testing/khard/APKBUILD b/testing/khard/APKBUILD
new file mode 100644
index 0000000000..83e70b9ec9
--- /dev/null
+++ b/testing/khard/APKBUILD
@@ -0,0 +1,45 @@
+# Contributor: Galen Abell <galen@galenabell.com>
+# Maintainer: Galen Abell <galen@galenabell.com>
+pkgname=khard
+_pyname=$pkgname
+pkgver=0.17.0
+pkgrel=0
+pkgdesc="Console CardDAV client"
+url="https://github.com/scheibler/khard"
+arch="noarch !x86" # deps not available on x86
+license="GPL-3.0-only"
+depends="
+ python3
+ py3-atomicwrites
+ py3-configobj
+ py3-ruamel.yaml
+ py3-unidecode
+ py3-vobject
+ "
+makedepends="
+ py3-setuptools
+ py3-setuptools_scm
+ py3-sphinx
+ py3-sphinx-autoapi
+ py3-sphinx-autodoc-typehints
+ "
+checkdepends="py3-pytest"
+subpackages="$pkgname-doc"
+source="https://files.pythonhosted.org/packages/source/${_pyname%${_pyname#?}}/$_pyname/$_pyname-$pkgver.tar.gz"
+
+build() {
+ python3 setup.py build
+ make -C doc man
+}
+
+check() {
+ pytest -v -s
+}
+
+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 doc/build/man/$pkgname.conf.5 "$pkgdir"/usr/share/man/man5/$pkgname.conf.5
+}
+
+sha512sums="9cb936aeaa327b9837488a752906bf603429ca0c7240703829220119049f5f62e84f7e4c90bb81799307fe446c3aa47fe6ee4112c276b6bb329c959be438ba25 khard-0.17.0.tar.gz"