summaryrefslogtreecommitdiff
path: root/pcr/maildirproc/PKGBUILD
blob: 3a7483cce4e99642a7dd0ccfd14a60422f74e837 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Maintainer: Luke Shumaker <lukeshu@parabola.nu>

pkgname="maildirproc"
_basever='1.0.1'
_patchver='a'
pkgver="${_basevar}.${_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/
}