summaryrefslogtreecommitdiff
path: root/pcr-testing/python-mailman-client/PKGBUILD
blob: 29d4b87ad381414d044350a711dd032fa2d4837f (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
38
# Maintainer: bill-auger <bill-auger@programmer.net>
# Maintainer (AUR): Simon Hanna <simon dot hanna AT serve-me DOT info>


pkgname=('python-mailman-client' 'python2-mailman-client')
pkgver=3.2.0
pkgrel=1
pkgdesc="Library that provides official Python bindings for the GNU Mailman 3 REST API"
arch=(any)
url=https://gitlab.com/mailman/mailmanclient
license=('LGPL')
options=(!emptydirs)

makedepends=('python-setuptools' 'python2-setuptools')

_upstream_name='mailmanclient'
_release="${_upstream_name}-${pkgver}"
source=(https://gitlab.com/mailman/${_upstream_name}/-/archive/${pkgver}/${_release}.tar.gz)
sha256sums=('12fdfd96ec46a3c38bf1227787f97d9547dec3d8501a26177c98b1a67a5e9999')


package_python-mailmanclient()
{
  depends=('python' 'python-six' 'python-httplib2')

  cd "$srcdir/${_release}"

  python setup.py install --root="$pkgdir/" --optimize=1
}

package_python2-mailmanclient()
{
  depends=('python2' 'python2-six' 'python2-httplib2')

  cd "$srcdir/${_release}"

  python2 setup.py install --root="$pkgdir/" --optimize=1
}