2012-08-11 19:26:02 +08:00
|
|
|
#
|
|
|
|
# Apps Packages for Chakra, part of chakra-project.org
|
|
|
|
#
|
|
|
|
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves@gmail.com>
|
|
|
|
|
2013-12-09 00:09:08 +08:00
|
|
|
pkgname=django-simple-captcha
|
|
|
|
pkgver=0.4.0
|
2012-08-11 19:26:02 +08:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="A simple customizable application to add captcha images to Django forms"
|
2013-02-17 07:41:19 +08:00
|
|
|
arch=('x86_64')
|
|
|
|
url="http://pypi.python.org/pypi/django-simple-captcha"
|
2012-08-11 19:26:02 +08:00
|
|
|
license=('BSD')
|
2013-02-17 07:41:19 +08:00
|
|
|
depends=('django' 'python2' 'python2-imaging' 'python-distribute')
|
2013-12-09 00:09:08 +08:00
|
|
|
provides=('django_simple_captcha')
|
|
|
|
conflicts=('django_simple_captcha')
|
|
|
|
replaces=('django_simple_captcha')
|
|
|
|
source=(http://pypi.python.org/packages/source/d/django-simple-captcha/${pkgname}-${pkgver}.tar.gz)
|
|
|
|
md5sums=('daccb7fbe693e8e7ce90ed40dc8df5a7')
|
2012-08-11 19:26:02 +08:00
|
|
|
|
|
|
|
build() {
|
2013-12-09 00:09:08 +08:00
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
2013-02-17 07:41:19 +08:00
|
|
|
|
2012-08-11 19:26:02 +08:00
|
|
|
# Build.
|
|
|
|
python2 setup.py build
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2013-12-09 00:09:08 +08:00
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
python2 setup.py install --prefix=/usr --root=${pkgdir}
|
2012-08-11 19:26:02 +08:00
|
|
|
|
|
|
|
# License.
|
2013-12-09 00:09:08 +08:00
|
|
|
install -d ${pkgdir}/usr/share/licenses/${pkgname}
|
|
|
|
install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
|
2012-08-11 19:26:02 +08:00
|
|
|
}
|