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

Morten Linderud foxboron at gemini.archlinux.org
Fri Nov 12 22:32:25 UTC 2021


    Date: Friday, November 12, 2021 @ 22:32:25
  Author: foxboron
Revision: 1044871

upgpkg: offlineimap 8.0.0-1

Modified:
  offlineimap/trunk/PKGBUILD

----------+
 PKGBUILD |   36 +++++++++++++++++-------------------
 1 file changed, 17 insertions(+), 19 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-11-12 22:31:27 UTC (rev 1044870)
+++ PKGBUILD	2021-11-12 22:32:25 UTC (rev 1044871)
@@ -1,45 +1,43 @@
-# Maintainer: Gaetan Bisson <bisson at archlinux.org>
 # Maintainer: Jaroslav Lichtblau <svetlemodry at archlinux.org>
+# Maintainer: Morten Linderud <foxboron at archlinux.org>
+# Contributor: Gaetan Bisson <bisson at archlinux.org>
 # Contributor: Callan Barrett <wizzomafizzo at gmail.com>
 # Contributor: mucknert <mucknert at gmx.net>
 
 pkgname=offlineimap
-pkgver=7.3.4
+_pkgname=${pkgname}3
+pkgver=8.0.0
 pkgrel=1
 pkgdesc='Synchronizes emails between two repositories'
 arch=('any')
 url='http://offlineimap.org/'
 license=('GPL')
-depends=('python2-six' 'python2-uritemplate' 'python2-rfc6555')
+depends=('python-imaplib2' 'python-distro' 'python-rfc6555')
 makedepends=('asciidoc')
-optdepends=('python2-pysocks: for SOCKS5 proxy functionality')
-changelog=$pkgname.changelog
-source=($pkgname-$pkgver.tar.gz::https://github.com/OfflineIMAP/offlineimap/archive/v${pkgver}.tar.gz)
-sha256sums=('87bc19f8ced25e31c583fa667376a0933de4410f33105884e971a0101a81a03e')
+optdepends=(
+    "python-gssapi: for Kerberos authentication"
+    "python-portalocker: if you need to run offlineimap in Cygwin for Windows"
+    "python-pysocks: for SOCKS5 proxy functionality"
+)
+source=($pkgname-$pkgver.tar.gz::https://github.com/OfflineIMAP/offlineimap3/archive/v${pkgver}.tar.gz)
+sha256sums=('5d40c163ca2fbf89658116e29f8fa75050d0c34c29619019eee1a84c90fcab32')
 
-prepare() {
-  cd "${srcdir}"/${pkgname}-${pkgver}
-  find . -type f -exec sed '1s,^#! \?/usr/bin/\(env \|\)python$,#!/usr/bin/python2,' -i {} \;
-}
 
 build() {
-  cd "${srcdir}"/${pkgname}-${pkgver}
-  python2 setup.py build
-
-  cd "${srcdir}"/${pkgname}-${pkgver}/docs
-  make man
+  cd ${_pkgname}-${pkgver}
+  python setup.py build
+  make -C docs man
 }
 
 package() {
-  cd "${srcdir}"/${pkgname}-${pkgver}
+  cd ${_pkgname}-${pkgver}
 
-  python2 setup.py install --root="${pkgdir}" --optimize=1
+  python setup.py install --root="${pkgdir}" --optimize=1
   install -Dm644 docs/offlineimap.1 "${pkgdir}"/usr/share/man/man1/offlineimap.1
   install -Dm644 docs/offlineimapui.7 "${pkgdir}"/usr/share/man/man7/offlineimapui.7
   install -Dm644 offlineimap.conf "${pkgdir}"/usr/share/offlineimap/offlineimap.conf
   install -Dm644 offlineimap.conf.minimal "${pkgdir}"/usr/share/offlineimap/offlineimap.conf.minimal
 
-#systemd files
   install -Dm644 contrib/systemd/$pkgname.service "${pkgdir}"/usr/lib/systemd/user/$pkgname.service
   install -Dm644 contrib/systemd/$pkgname at .service "${pkgdir}"/usr/lib/systemd/user/$pkgname at .service
   install -Dm644 contrib/systemd/$pkgname-oneshot.service "${pkgdir}"/usr/lib/systemd/user/$pkgname-oneshot.service



More information about the arch-commits mailing list