desktop/django-simple-captcha/PKGBUILD
2014-05-12 23:39:53 +00:00

32 lines
967 B
Bash

# Maintainer: Manuel 'UtG' <utg.chakra.linux[at]gmail[dot]com>
pkgname=django-simple-captcha
pkgver=0.4.2
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=('da81d1d4c1954df91ccfc7558f52c0a5')
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
}