[arch-commits] Commit in khard/repos (2 files)

Evangelos Foutras foutrelis at archlinux.org
Thu Nov 12 17:12:52 UTC 2020


    Date: Thursday, November 12, 2020 @ 17:12:51
  Author: foutrelis
Revision: 752353

archrelease: copy trunk to community-staging-any

Added:
  khard/repos/community-staging-any/
  khard/repos/community-staging-any/PKGBUILD
    (from rev 752352, khard/trunk/PKGBUILD)

----------+
 PKGBUILD |   57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 57 insertions(+)

Copied: khard/repos/community-staging-any/PKGBUILD (from rev 752352, khard/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-12 17:12:51 UTC (rev 752353)
@@ -0,0 +1,57 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+pkgname=khard
+pkgver=0.17.0
+pkgrel=2
+pkgdesc="Console CardDAV client"
+arch=('any')
+url="https://github.com/scheibler/khard"
+license=('GPL3')
+depends=('python-atomicwrites' 'python-configobj' 'python-ruamel-yaml'
+'python-setuptools' 'python-unidecode' 'python-vobject')
+makedepends=('python-sphinx-autoapi' 'python-sphinx-autodoc-typehints'
+'python-setuptools_scm' 'python-sphinx')
+checkdepends=('python-pytest')
+optdepends=('vdirsyncer: Synchronization of address books with a DAV server'
+            'diffutils: Using sdiff_khard_wrapper.sh')
+source=("https://files.pythonhosted.org/packages/source/${pkgname::1}/${pkgname}/${pkgname}-${pkgver}.tar.gz")
+sha512sums=('9cb936aeaa327b9837488a752906bf603429ca0c7240703829220119049f5f62e84f7e4c90bb81799307fe446c3aa47fe6ee4112c276b6bb329c959be438ba25')
+b2sums=('488e1df70212c856d8dfa43955e681344fb1a257d765c81820444f6435d39aec782da9d01edeeaac0b9a87412db680fde368c39c74faa82b0eff2d7a0a2dbc6b')
+
+build() {
+  cd "$pkgname-$pkgver"
+  python setup.py build
+  make -C doc man
+}
+
+check() {
+  cd "$pkgname-$pkgver"
+  pytest -v
+}
+
+package() {
+  cd "$pkgname-$pkgver"
+  export PYTHONHASHSEED=0
+  python setup.py install --skip-build \
+                          --optimize=1 \
+                          --root="${pkgdir}"
+  # additional wrapper script
+  install -vDm 755 "misc/sdiff/sdiff_${pkgname}_wrapper.sh" \
+    "${pkgdir}/usr/lib/${pkgname}/sdiff_${pkgname}_wrapper.sh"
+  # twinkle integration
+  install -vDm 644 misc/twinkle/scripts/*.py \
+    -t "${pkgdir}/usr/share/${pkgname}/twinkle/scripts/"
+  install -vDm 644 misc/twinkle/sounds/*.ogg \
+    -t "${pkgdir}/usr/share/${pkgname}/twinkle/sounds/"
+  # zsh
+  install -vDm 644 "misc/zsh/_"*"${pkgname}" \
+    -t "${pkgdir}/usr/share/zsh/site-functions/"
+  # docs
+  install -vDm 644 {CHANGES,CONTRIBUTING.rst,README.md} \
+    -t "${pkgdir}/usr/share/doc/${pkgname}/"
+  # man
+  install -vDm 644 "doc/build/man/${pkgname}.1" \
+    -t "${pkgdir}/usr/share/man/man1"
+  install -vDm 644 "doc/build/man/${pkgname}.conf.5" \
+    -t "${pkgdir}/usr/share/man/man5"
+}



More information about the arch-commits mailing list