summaryrefslogtreecommitdiff
path: root/python-courier-pythonfilter/PKGBUILD
blob: 546709ef80c205562cfd66708b64a3f4fe07509e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Maintainer: Erich Eckner <arch at eckner dot net>

pkgname=python-courier-pythonfilter
_pkgname="${pkgname#*-}"
pkgver=3.0.2
pkgrel=4
pkgdesc='collection of useful filters for the Courier MTA, and a framework for developing new filters in Python'
arch=('any')
url='https://bitbucket.org/gordonmessmer/courier-pythonfilter'
license=('GPL')
depends=(
  'python>=3.9'
  'python<3.10'
)
makedepends=(
  'python-setuptools')
source=("${_pkgname}-${pkgver}.tar.gz::https://bitbucket.org/gordonmessmer/${_pkgname}/get/release-${pkgver//./-}.tar.gz")
sha512sums=('b01be19ad772f6b89390bd44285a1100c37beed5ee18a4fe567f4aa41cf2bde173739b98daa51796551a41fbd57a4bb7c4d183d7a1d9a717f1251ddeacb90eb4')
backup=('etc/pythonfilter-modules.conf' 'etc/pythonfilter.conf')
optdepends=(
  'python-pyclamav:  Virus Scan'
  'python-pydns:     dialback'
  'python-spf:       spfcheck and whitelist_spf'
  'spamassassin:     Spam Detection'
)

build() {
  cd "${srcdir}/gordonmessmer-${_pkgname}-"*
  python setup.py build
}

package() {
  depends+=('courier-mta')
  cd "${srcdir}/gordonmessmer-${_pkgname}-"*
  python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1
}