# Contributor: Peter Bui # Maintainer: Peter Bui pkgname=offlineimap pkgver=6.6.1 pkgrel=0 pkgdesc="Synchronizes emails between two repositories" url="http://offlineimap.org/" arch="noarch" license="GPL2+" depends="python" depends_dev="python-dev" makedepends="$depends_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 prepare() { local i cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } 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 install -Dm644 docs/offlineimap.1 "${pkgdir}"/usr/share/man/man1/offlineimap.1 || return 1 install -Dm644 docs/offlineimapui.7 "${pkgdir}"/usr/share/man/man7/offlineimapui.7 || return 1 install -Dm644 offlineimap.conf "${pkgdir}"/usr/share/offlineimap/offlineimap.conf || return 1 install -Dm644 offlineimap.conf.minimal "${pkgdir}"/usr/share/offlineimap/offlineimap.conf.minimal || return 1 } md5sums="cbf310ad293141d7ee944e541d43043f offlineimap-6.6.1.tar.gz" sha256sums="af3fd47ba087180dc0e8d2b64cf358ce7f6fe49732d13b6fcce82853d0004bb0 offlineimap-6.6.1.tar.gz" sha512sums="a8b61228baac3bf50781f31c108441998af2fa81b15f88f28a4110d316f56813815a665249d4e37817c4441648539ebc495ea2b4766a2379a7f8368c2872829f offlineimap-6.6.1.tar.gz"