# Contributor: Sören Tempel # Contributor: Peter Bui # Maintainer: Peter Bui pkgname=offlineimap pkgver=7.0.13 pkgrel=0 pkgdesc="Synchronizes emails between two repositories" url="http://www.offlineimap.org" arch="noarch" license="GPL2+" depends="python2 py2-six" depends_dev="" makedepends="python2-dev asciidoc" install="" 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 || return 1 cd "$builddir"/docs make man || return 1 } package() { cd "$builddir" python2 setup.py install --root="${pkgdir}" \ --optimize=1 || return 1 for man in docs/*.?; do install -Dm644 "$man" \ "$pkgdir"/usr/share/man/man${man##*.}/${man##*/} || return 1 done mkdir -p "$pkgdir"/usr/share/doc/$pkgname/examples/ install -m644 README.md TODO.rst MAINTAINERS.rst Changelog.md \ "$pkgdir"/usr/share/doc/$pkgname/ || return 1 install -m644 offlineimap.conf* \ "$pkgdir"/usr/share/doc/$pkgname/examples/ || return 1 } md5sums="ff9b360c938800466457b5ad4aab0975 offlineimap-7.0.13.tar.gz" sha256sums="f744843f943c6adaa754e1244e16bfd6eaa825affe385169f16475db191787ce offlineimap-7.0.13.tar.gz" sha512sums="d15a0f574b5793859bd32a646c2bb89e28a5d74aa2a86cafa07bc0d6bdbfac31f7a87b61aff3209e8897a0e3959c4bc4fd81aa9c9057f512afa64a919be87482 offlineimap-7.0.13.tar.gz"