summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ee3889dbaef6500f6e9d9758f240c30f55f6e7e4 (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
# Maintainer: Simon Hanna <simon dot hanna AT serve-me DOT info>

pkgname=('python2-django-postorius-git')
_pkgbase=postorius
pkgver=r1227.eb9414d
pkgrel=1
pkgdesc="A Django app that provides a web user interface to access GNU Mailman"
arch=(any)
provides=('python2-django-postorius')
conflicts=('python2-django-postorius')
makedepends=('git' 'python2-setuptools')
checkdepends=('python-tox')
depends=('python2' 'python2-django' 'python2-django-mailman3-git' 'python2-mailmanclient-git')
url="https://gitlab.com/mailman/postorius"
license=('LGPL')
options=(!emptydirs)
source=("git+https://gitlab.com/mailman/postorius.git")
sha256sums=('SKIP')

pkgver() {
  cd "${srcdir}/postorius"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

check() {
  cd "$srcdir/postorius"
  tox -e py27-django110-head
}

package() {
  cd "$srcdir/postorius"
  python2 setup.py install --root="$pkgdir/" --optimize=1
}

# vim:set ts=2 sw=2 et: