# Contributor: Sören Tempel # Contributor: Peter Bui # Maintainer: Sören Tempel pkgname=offlineimap pkgver=7.2.2 pkgrel=0 pkgdesc="Synchronizes emails between two repositories" url="http://www.offlineimap.org" arch="noarch" license="GPL-2.0-or-later" depends="python2 py2-six" makedepends="python2-dev asciidoc" install="" options="!check" # test suite requires credentials for an IMAP and Gmail account subpackages="$pkgname-doc" source="$pkgname-$pkgver.tar.gz::https://github.com/OfflineIMAP/${pkgname}/archive/v${pkgver}.tar.gz" builddir="$srcdir"/$pkgname-$pkgver build() { cd "$builddir" python2 setup.py build cd "$builddir"/docs make man } package() { cd "$builddir" python2 setup.py install --root="${pkgdir}" \ --optimize=1 for man in docs/*.?; do install -Dm644 "$man" \ "$pkgdir"/usr/share/man/man${man##*.}/${man##*/} done mkdir -p "$pkgdir"/usr/share/doc/$pkgname/examples/ install -m644 README.md TODO.rst MAINTAINERS.rst Changelog.md \ "$pkgdir"/usr/share/doc/$pkgname/ install -m644 offlineimap.conf* \ "$pkgdir"/usr/share/doc/$pkgname/examples/ } sha512sums="de60472d24368ff4f5c43ecb50b021c671e6fe713220475da8bd900de6bfb6a10ec8c585f96f6091caea32344f65886e2870d097974ebef343b0ca56a81ddd7c offlineimap-7.2.2.tar.gz"