# Contributor: Sören Tempel # Contributor: Peter Bui # Maintainer: Peter Bui pkgname=offlineimap pkgver=7.0.12 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="3aa6cc995ad72a7e8b6e39d830e80592 offlineimap-7.0.12.tar.gz" sha256sums="7fdad62ed59eb817969465dcba794271f8f84aa51d31ace9994865dbf9b934d4 offlineimap-7.0.12.tar.gz" sha512sums="250376e83a5fe4f3652a9c3977100f11fe518a9955bda127f39f2ef360bb77fb4f108e44e6fc36a4f0f85dea02596f0eb2a48cb4d2fff1e02c9cc45c60c8679b offlineimap-7.0.12.tar.gz"