diff options
author | Joffrey | 2018-06-15 14:21:25 +0000 |
---|---|---|
committer | Joffrey | 2018-06-15 14:21:25 +0000 |
commit | 5111fcefad51e0efbf41d2e79756f5e17dffeb44 (patch) | |
tree | 5e3381c41a875c309f18c51bd5cc82eb6644d95d | |
download | aur-5111fcefad51e0efbf41d2e79756f5e17dffeb44.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 24 | ||||
-rw-r--r-- | PKGBUILD | 37 |
2 files changed, 61 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..66219a650dfe --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,24 @@ +pkgbase = python-django-simple-captcha + pkgdesc = Django application to add captcha images to any Django form + pkgver = 0.5.7 + pkgrel = 1 + url = https://github.com/mbi/django-simple-captcha + arch = any + license = MIT + makedepends = python-setuptools + makedepends = python2-setuptools + source = https://github.com/mbi/django-simple-captcha/archive/v0.5.7.tar.gz + sha256sums = 784a27dc8bfec5cafe9adc65cc89d12286430c3a9b456c6f0b2e18ffcf892648 + +pkgname = python-django-simple-captcha + depends = python-django + depends = python-six + depends = python-pillow + depends = python-django-ranged-response + +pkgname = python2-django-simple-captcha + depends = python2-django + depends = python2-six + depends = python2-pillow + depends = python2-django-ranged-response + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..011532828bd0 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,37 @@ +# Maintainer: Joffrey <j-off@live.fr> + +pkgbase='python-django-simple-captcha' +pkgname=('python-django-simple-captcha' 'python2-django-simple-captcha') +pkgver='0.5.7' +pkgrel=1 +pkgdesc='Django application to add captcha images to any Django form' +arch=('any') +url='https://github.com/mbi/django-simple-captcha' +license=('MIT') +makedepends=('python-setuptools' 'python2-setuptools') +source=("https://github.com/mbi/django-simple-captcha/archive/v$pkgver.tar.gz") +sha256sums=('784a27dc8bfec5cafe9adc65cc89d12286430c3a9b456c6f0b2e18ffcf892648') + +package_python-django-simple-captcha() { + depends=( + 'python-django' + 'python-six' + 'python-pillow' + 'python-django-ranged-response' + ) + cd "$srcdir/django-simple-captcha-$pkgver" + install -Dm644 './LICENSE' "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + python './setup.py' install --root="$pkgdir" --optimize=1 +} + +package_python2-django-simple-captcha() { + depends=( + 'python2-django' + 'python2-six' + 'python2-pillow' + 'python2-django-ranged-response' + ) + cd "$srcdir/django-simple-captcha-$pkgver" + install -Dm644 './LICENSE' "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + python2 './setup.py' install --root="$pkgdir" --optimize=1 +} |