# Contributor: Sören Tempel # Contributor: Peter Bui # Maintainer: Peter Bui pkgname=offlineimap pkgver=7.0.5 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="a099f1675cddfe62d6d75857ccfdf545 offlineimap-7.0.5.tar.gz" sha256sums="76668c032d3e1c845addaf99b7f4dc61bbb2e06038a85322347d46d2233e9517 offlineimap-7.0.5.tar.gz" sha512sums="f489468266455346f9bce30796b4fb270a61caf66dada22b21e5408b9207e41ae437e271a808662fe0105e30d670273c5f102b51c2b5b497665dc0ab3601e386 offlineimap-7.0.5.tar.gz"