summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7fa81966c2b4960c3c14893dace37a252be31153 (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
# Maintainer: Joffrey <j-off@live.fr>

pkgbase='python-django-simple-captcha'
pkgname=('python-django-simple-captcha' 'python2-django-simple-captcha')
pkgver='0.5.10'
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=('31dbdaa819c8c40c20519c0d48e0b8059ca2ffc8bdfa671271f2f133c47be4cd')

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
}