desktop/django_simple_captcha/PKGBUILD
2013-12-08 16:09:08 +00:00

35 lines
1.0 KiB
Bash

#
# Apps Packages for Chakra, part of chakra-project.org
#
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves@gmail.com>
pkgname=django-simple-captcha
pkgver=0.4.0
pkgrel=1
pkgdesc="A simple customizable application to add captcha images to Django forms"
arch=('x86_64')
url="http://pypi.python.org/pypi/django-simple-captcha"
license=('BSD')
depends=('django' 'python2' 'python2-imaging' 'python-distribute')
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')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
# Build.
python2 setup.py build
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
python2 setup.py install --prefix=/usr --root=${pkgdir}
# License.
install -d ${pkgdir}/usr/share/licenses/${pkgname}
install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
}