commit 2f64f506009a130bade339361484d7785c309e98 Author: Joffrey Date: Fri Jun 15 14:21:25 2018 +0000 Initial commit diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 00000000000..80ab87af14b --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = python-django-post-office + pkgdesc = A simple app to send and manage your emails in Django + pkgver = 3.0.4 + pkgrel = 1 + url = https://github.com/ui/django-post_office + arch = any + license = MIT + makedepends = python-setuptools + makedepends = python2-setuptools + source = https://github.com/ui/django-post_office/archive/v3.0.4.tar.gz + sha256sums = 4faf61df6a087f95e34fe31efe9571729286e83edf556f300c9198852fd92593 + +pkgname = python-django-post-office + depends = python-django-jsonfield + +pkgname = python2-django-post-office + depends = python2-django-jsonfield + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 00000000000..a9132e4ef12 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,27 @@ +# Maintainer: Joffrey + +pkgname=('python-django-post-office' 'python2-django-post-office') +pkgbase='python-django-post-office' +pkgver='3.0.4' +pkgrel=1 +pkgdesc='A simple app to send and manage your emails in Django' +arch=('any') +url='https://github.com/ui/django-post_office' +license=('MIT') +makedepends=('python-setuptools' 'python2-setuptools') +source=("https://github.com/ui/django-post_office/archive/v$pkgver.tar.gz") +sha256sums=('4faf61df6a087f95e34fe31efe9571729286e83edf556f300c9198852fd92593') + +package_python-django-post-office() { + depends=('python-django-jsonfield') + cd "$srcdir/django-post_office-$pkgver" + install -Dm644 './LICENSE.txt' "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + python './setup.py' install --root="$pkgdir" --optimize=1 +} + +package_python2-django-post-office() { + depends=('python2-django-jsonfield') + cd "$srcdir/django-post_office-$pkgver" + install -Dm644 './LICENSE.txt' "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + python2 './setup.py' install --root="$pkgdir" --optimize=1 +}