[arch-commits] Commit in vdirsyncer/trunk (PKGBUILD)

David Runge dvzrv at archlinux.org
Mon Jul 13 23:28:22 UTC 2020


    Date: Monday, July 13, 2020 @ 23:28:22
  Author: dvzrv
Revision: 663551

upgpkg: vdirsyncer 0.16.8-3: Adding man page.

Using sphinx-build to create vdirsyncer.1

Modified:
  vdirsyncer/trunk/PKGBUILD

----------+
 PKGBUILD |    8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-07-13 23:25:31 UTC (rev 663550)
+++ PKGBUILD	2020-07-13 23:28:22 UTC (rev 663551)
@@ -3,7 +3,7 @@
 
 pkgname=vdirsyncer
 pkgver=0.16.8
-pkgrel=2
+pkgrel=3
 pkgdesc="Synchronize CalDAV and CardDAV."
 arch=('any')
 url="https://vdirsyncer.pimutils.org/en/stable/"
@@ -11,7 +11,7 @@
 depends=('python-atomicwrites' 'python-click' 'python-click-log'
 'python-click-threading' 'python-requests' 'python-requests-toolbelt'
 'python-setuptools')
-makedepends=('git' 'python-setuptools-scm')
+makedepends=('git' 'python-setuptools-scm' 'python-sphinx')
 optdepends=('python-requests-oauthlib: Google support'
             'python-etesync: Etesync support'
             'python-django: Etesync support')
@@ -35,6 +35,8 @@
 build() {
   cd "${pkgname}"
   python setup.py build
+  export PYTHONPATH="build:${PYTHONPATH}"
+  sphinx-build -b man docs/ build/
 }
 
 check() {
@@ -53,6 +55,8 @@
   # systemd
   install -vDm 644 "contrib/${pkgname}."{service,timer} \
     -t "${pkgdir}/usr/lib/systemd/user/"
+  # man page
+  install -vDm 644 "build/${pkgname}.1" -t "${pkgdir}/usr/share/man/man1"
   # docs
   install -vDm 644 {AUTHORS,CHANGELOG,README}.rst \
     -t "${pkgdir}/usr/share/doc/${pkgname}"



More information about the arch-commits mailing list