summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorSimon Hanna2016-08-23 17:29:41 +0200
committerSimon Hanna2016-08-23 17:40:06 +0200
commit3babc97dae9ac04f273c75911517599c65178c5a (patch)
tree26fe51f2d505521b8b47e27c23544f556d155456 /PKGBUILD
downloadaur-python2-django-mailman3-git.tar.gz
upgpkg: python2-django-mailman3-git r44.d0fa4f8-1
upstream release Initial upload: python2-django-mailman3-git
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD33
1 files changed, 33 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..afc96f29efc
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,33 @@
+# Maintainer: Simon Hanna <simon dot hanna AT serve-me DOT info>
+
+pkgname=('python2-django-mailman3-git')
+pkgver=r44.d0fa4f8
+pkgrel=1
+pkgdesc="Django library to help interaction with Mailman"
+arch=(any)
+makedepends=('git')
+checkdepends=('python-tox')
+depends=('python2' 'python2-django' 'python2-django-allauth'
+ 'python2-mailmanclient' 'python2-pytz' 'python2-django-gravatar')
+url="https://gitlab.com/mailman/django-mailman3"
+license=('GPLv3')
+options=(!emptydirs)
+source=("git+https://gitlab.com/mailman/django-mailman3.git")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd "${srcdir}/django-mailman3"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+check() {
+ cd "${srcdir}/django-mailman3"
+ tox -e py27-django110-head
+}
+
+package() {
+ cd "$srcdir/django-mailman3"
+ python2 setup.py install --root="$pkgdir/" --optimize=1
+}
+
+# vim:set ts=2 sw=2 et: