# Maintainer: Luke Shumaker <lukeshu@parabola.nu>

pkgname="maildirproc"
_basever='1.0.1'
_patchver='a'
pkgver="${_basever}.${_patchver}"
pkgrel="1"
pkgdesc="A Maildir-based mail filter"
arch=('any')
url="http://joel.rosdahl.net/maildirproc/"
license=("GPL") # GPLv2+
depends=("python")
source=("https://pypi.python.org/packages/source/${pkgname:0:1}/${pkgname}/${pkgname}-${_basever}${_patchver}.tar.bz2")
md5sums=('3dab506996dc7218d9aace5fda08d412')
sha256sums=('f206cc75021ab17223cb650cd18bf535001f9f5e05e40c1e43a0fa7da84622b2')

package() {
  cd "$srcdir/$pkgname-$_basever"
  python setup.py install --root="$pkgdir" --optimize=1

  mkdir -p "$pkgdir"/usr/share/doc/$pkgname/
  cp -r doc/* "$pkgdir"/usr/share/doc/$pkgname/
}