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

Felix Yan felixonmars at archlinux.org
Thu Nov 12 16:56:52 UTC 2020


    Date: Thursday, November 12, 2020 @ 16:56:52
  Author: felixonmars
Revision: 752115

archrelease: copy trunk to community-staging-any

Added:
  khal/repos/community-staging-any/
  khal/repos/community-staging-any/PKGBUILD
    (from rev 752114, khal/trunk/PKGBUILD)

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

Copied: khal/repos/community-staging-any/PKGBUILD (from rev 752114, khal/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-12 16:56:52 UTC (rev 752115)
@@ -0,0 +1,61 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+# Contributor: eolianoe <eolianoe [at] googlemail [dot] com>
+# Contributor: Hugo Osvaldo Barrera <hugo at barrera.io>
+# Contributor: Thomas Weißschuh <thomas t-8ch de>
+# Contributor: Étienne Deparis <etienne [at] depar [dot] is>
+# Contributor: Daniel M. Capella <polyzen at archlinux.info>
+
+_name=khal
+pkgname=khal
+pkgver=0.10.2
+pkgrel=2
+pkgdesc='CLI calendar application build around CalDAV'
+arch=('any')
+url="https://lostpackets.de/khal/"
+license=('MIT')
+makedepends=('python-setuptools-scm' 'python-sphinxcontrib-newsfeed')
+depends=('python-atomicwrites' 'python-click' 'python-click-log'
+'python-configobj' 'python-dateutil' 'python-icalendar' 'python-pytz'
+'python-setuptools' 'python-tzlocal' 'python-urwid' 'python-xdg')
+optdepends=('python-setproctitle: Set process name'
+            'vdirsyncer: Synchronize CalDAV calendars')
+checkdepends=('python-pytest' 'python-freezegun' 'vdirsyncer')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
+sha512sums=('e15449b73175190f02b6fe5774a8feef8a5390966da3836624c94a044d146cc6e8a73985d991042fbb617f736c6759ded387a65292529e71f5b2f34bc80a686e')
+b2sums=('0c7c4ab1234ebe90ef9ad8291f2a0087a3f6a60d25f5426445eedadb25f236b3598dacc051e959a108ad472efc56628bf7ba11ed714c885d956f1a8f905029ca')
+
+build() {
+  cd "${pkgname}-${pkgver}"
+  python setup.py build
+  make -C doc man PYTHONPATH="${PWD}"
+}
+
+check() {
+  cd "${pkgname}-${pkgver}"
+  pytest -v \
+    || echo "Tests from hell: https://github.com/pimutils/khal/issues/860"
+}
+
+package() {
+  cd "${pkgname}-${pkgver}"
+  python setup.py install --skip-build \
+    --optimize=1 \
+    --prefix=/usr \
+    --root="${pkgdir}"
+  # executables
+  install -vDm 755 bin/{i,}"${pkgname}" -t "$pkgdir/usr/bin/"
+  # configuration
+  install -vDm 644 "${pkgname}.conf.sample" \
+    "${pkgdir}/usr/share/doc/${pkgname}/examples/${pkgname}.conf"
+  # man page
+  install -vDm 644 doc/build/man/${pkgname}.1 \
+    -t "${pkgdir}/usr/share/man/man1/"
+  # zsh completion
+  install -vDm 644 "misc/__${pkgname}" \
+    "${pkgdir}/usr/share/zsh/site-functions/_${pkgname}"
+  # license
+  install -vDm 644 COPYING -t "${pkgdir}/usr/share/licenses/${pkgname}"
+  # docs
+  install -vDm 644 {AUTHORS.txt,{CHANGELOG,CONTRIBUTING,README}.rst} \
+    -t "${pkgdir}/usr/share/doc/${pkgname}"
+}



More information about the arch-commits mailing list