You are not logged in.

#1 2020-12-02 13:58:59

sharethewisdom
Member
Registered: 2014-09-22
Posts: 57

[REQUEST] offlineimap3

Work has been proceeding on the python3 version of offlineimap. Recently an experimental Debian package was created.

Could this be made available in [community-testing]? Or shall I create an offlineimap3-git aur package as well as one for a python3 version of python-imaplib2?

pkgname=offlineimap3-git
_pkgname=offlineimap3
pkgver=r2689.74744ce
pkgrel=1
pkgdesc="A powerful IMAP/Maildir synchronization tool (python3 version)"
url="http://offlineimap.org/"
arch=('any')
license=('GPL')
depends=('python' 'python-imaplib') #todo: python3 version of python-imaplib2
makedepends=('git' 'asciidoc')
conflicts=('offlineimap')
provides=('offlineimap')
source=("git+git://github.com/OfflineIMAP/${_pkgname}.git")
md5sums=('SKIP')

pkgver() {
  cd "$srcdir"/"$_pkgname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "$srcdir"/"$_pkgname"
  python setup.py build

  cd "$srcdir"/"$_pkgname"/docs
  make man
}

package() {
  cd "$srcdir"/"$_pkgname"
  python setup.py install --root="${pkgdir}" --optimize=1 --skip-build

  install -D -m644 docs/offlineimap.1 ${pkgdir}/usr/share/man/man1/offlineimap.1
  install -D -m644 docs/offlineimapui.7 "${pkgdir}"/usr/share/man/man7/offlineimapui.7
  install -D -m644 offlineimap.conf ${pkgdir}/usr/share/offlineimap/offlineimap.conf
  install -D -m644 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-oneshot.service "${pkgdir}"/usr/lib/systemd/user/$_pkgname.service
  install -Dm644 contrib/systemd/$_pkgname-oneshot.timer "${pkgdir}"/usr/lib/systemd/user/_$pkgname.timer
  install -Dm644 contrib/systemd/$_pkgname-oneshot@.service "${pkgdir}"/usr/lib/systemd/user/$_pkgname.service
  install -Dm644 contrib/systemd/$_pkgname@.service "${pkgdir}"/usr/lib/systemd/user/$_pkgname@.service
  install -Dm644 contrib/systemd/$_pkgname-oneshot@.timer "${pkgdir}"/usr/lib/systemd/user/$_pkgname@.timer
}

# vim:set ts=2 sw=2 et:

I haven't used or tested this PKGBUILD. I remember reading about a replacement for offlineimap. What's the best choice for users who want to get rid of python2 packages but still use offlineimap? I expected to find a discussion on the forums about it, but alas.

Offline

#2 2020-12-02 14:11:22

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 25,088
Website

Re: [REQUEST] offlineimap3

sharethewisdom wrote:

I remember reading about a replacement for offlineimap. What's the best choice for users who want to get rid of python2 packages but still use offlineimap?

You may be referring to mbsync (package = isync).  I used offlineimap for a while and really liked it ... or I thought I did before I switched to mbsync which is really leaps and bounds better in every way that I've experienced.  It acheives the same goals, but the configuration is simpler, its faster, and much more stable.  And more on point for this thread, isync only depends on libsasl and zlib (no python at all).


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

Board footer

Powered by FluxBB