Date: Wednesday, July 15, 2020 @ 21:26:01 Author: dvzrv Revision: 664014
archrelease: copy trunk to community-any Added: khard/repos/community-any/PKGBUILD (from rev 664013, khard/trunk/PKGBUILD) Deleted: khard/repos/community-any/PKGBUILD ----------+ PKGBUILD | 125 +++++++++++++++++++++++++++++++------------------------------ 1 file changed, 64 insertions(+), 61 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2020-07-15 21:25:56 UTC (rev 664013) +++ PKGBUILD 2020-07-15 21:26:01 UTC (rev 664014) @@ -1,61 +0,0 @@ -# Maintainer: David Runge <dv...@archlinux.org> - -pkgname=khard -pkgver=0.16.1 -pkgrel=1 -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=('617959667807e3108e4e73d8c9600da80d09daededdffcb0025941bff8f6ed3fc12f02dd2e0f39d1dc9cad125bf386308ed311e59ea5fa366fa9979ebe10aa62') - -build() { - cd "$pkgname-$pkgver" - python setup.py build - make -C doc singlehtml man -} - -check() { - cd "$pkgname-$pkgver" - pytest -v -} - -package() { - cd "$pkgname-$pkgver" - python setup.py install --skip-build \ - --optimize=1 \ - --prefix=/usr \ - --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" - # html - install -vDm 644 "doc/build/singlehtml/index.html" \ - -t "${pkgdir}/usr/share/doc/${pkgname}/html" - install -vDm 644 "doc/build/singlehtml/_static/"*.{css,js,png} \ - -t "${pkgdir}/usr/share/doc/${pkgname}/html/_static" -} Copied: khard/repos/community-any/PKGBUILD (from rev 664013, khard/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2020-07-15 21:26:01 UTC (rev 664014) @@ -0,0 +1,64 @@ +# Maintainer: David Runge <dv...@archlinux.org> + +pkgname=khard +pkgver=0.16.1 +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=('617959667807e3108e4e73d8c9600da80d09daededdffcb0025941bff8f6ed3fc12f02dd2e0f39d1dc9cad125bf386308ed311e59ea5fa366fa9979ebe10aa62') + +prepare() { + cd "$pkgname-$pkgver" + # removing prepopulated __pycache__ directory + # https://github.com/scheibler/khard/issues/268 + rm -rvf test/__pycache__ +} + +build() { + cd "$pkgname-$pkgver" + python setup.py build + make -C doc man +} + +check() { + cd "$pkgname-$pkgver" + pytest -v + rm -rvf test/__pycache__ +} + +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" +}