# Contributor: Sören Tempel # Contributor: Peter Bui # Maintainer: Peter Bui pkgname=offlineimap pkgver=7.0.7 pkgrel=0 pkgdesc="Synchronizes emails between two repositories" url="http://www.offlineimap.org" arch="noarch" license="GPL2+" depends="python py2-six" depends_dev="" makedepends="python-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" python setup.py build || return 1 cd "$builddir"/docs make man || return 1 } package() { cd "$builddir" python 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="ebaf6f229687e6e6dc1d56e8605f935b offlineimap-7.0.7.tar.gz" sha256sums="802e7574fd4771c4e3bf5da11cb039e58c11bbbe799776bd9d05aa0eb8ed299c offlineimap-7.0.7.tar.gz" sha512sums="32b28846ab6acf4a0184660039d808a07c78557c4205efc1cd30ff993f7fc3cc0855a3aafb0dd1f98bbfd2acdc8ee63a56cd28e182567ce9b85341cd17211881 offlineimap-7.0.7.tar.gz"