From ff2b1845779576c6a113335eb4d115b727e0e782 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 6 Feb 2019 14:39:39 +0100 Subject: python2-courier-pythonfilter neu --- python2-courier-pythonfilter/PKGBUILD | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 python2-courier-pythonfilter/PKGBUILD diff --git a/python2-courier-pythonfilter/PKGBUILD b/python2-courier-pythonfilter/PKGBUILD new file mode 100644 index 00000000..39c98f16 --- /dev/null +++ b/python2-courier-pythonfilter/PKGBUILD @@ -0,0 +1,32 @@ +# Maintainer: Erich Eckner + +pkgname=python2-courier-pythonfilter +_pkgname='courier-pythonfilter' +pkgver=1.11 +pkgrel=1 +pkgdesc='collection of useful filters for the Courier MTA, and a framework for developing new filters in Python' +arch=('any') +url='http://www.dragonsdawn.net/~gordon/courier-pythonfilter/' +license=('GPL') +depends=( + 'python2>=2.7' + 'python2<2.8' +) +makedepends=( + 'python2-setuptools') +source=("http://www.dragonsdawn.net/~gordon/courier-pythonfilter/${_pkgname}-${pkgver}.tar.gz") +sha512sums=('75ffff7d9692861c535ee18d1d25954c79e81275641172ad706caf0c65dc715ffd4a1c021b0e26fc992fffdf6c2842ed8fc688eff82ec42591b35af834c0ace4') + +build() { + cd "${srcdir}/${_pkgname}-${pkgver}" + python2 setup.py build +} + +package() { + depends+=('courier-mta') + cd "${srcdir}/${_pkgname}-${pkgver}" + python2 setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 + find "${pkgdir}" -type f -exec sed -i ' 1 s,^#!/usr/bin/python$,\02,' {} \; + rm "${pkgdir}/usr/lib/python2"*"/site-packages/${_pkgname//-/_}-${pkgver}-py2"*".egg-info" +} + -- cgit v1.2.3-70-g09d2