blob: 09c90e7ef662ff86c8bfbcb0c2441ddd06bd62de (
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
38
|
# Contributor: <xmingske@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
_pkgname=django-simple-captcha
pkgname=py-${_pkgname}
pkgver=0.4.3
pkgrel=0
pkgdesc="simple, yet highly customizable Django application to add captcha images to any Django"
url="https://github.com/mbi/django-simple-captcha"
arch="noarch"
license="BSD"
makedepends="python-dev py-setuptools"
depends="python"
source="$pkgname-$pkgver.tar.gz::https://github.com/mbi/django-simple-captcha/archive/9f2f5bfba97e931931e59d1a58a4a35d36dcce0d.tar.gz"
_builddir="${srcdir}/${_pkgname}-9f2f5bfba97e931931e59d1a58a4a35d36dcce0d"
prepare() {
local pf
cd "${_builddir}"
for pf in $source; do
case $pf in
*.patch) msg $pf; patch -p1 -i "$srcdir"/${pf} || return 1;;
esac
done
}
build() {
cd "${_builddir}"
python setup.py build || return 1
}
package() {
cd "${_builddir}"
python setup.py install --prefix=/usr --root="$pkgdir" || return 1
}
md5sums="9ed672fe6f248751583f815fc8224835 py-django-simple-captcha-0.4.3.tar.gz"
sha256sums="2ddc577b9be29f4f3bc99ce1b49548fbced11238d0f1d6ba64a7f151a9fd4f24 py-django-simple-captcha-0.4.3.tar.gz"
sha512sums="361e5e746af42ccd4c8a5bd347e7e92facbec500ad28088f07d45b54a74cf151b34037a4e5eda2313fbdd0463e60edc692a8eb990ee87c6e8423ca23210be59a py-django-simple-captcha-0.4.3.tar.gz"
|