desktop/django-simple-captcha/PKGBUILD

32 lines
967 B
Bash
Raw Normal View History

# Maintainer: Manuel 'UtG' <utg.chakra.linux[at]gmail[dot]com>
2012-08-11 19:26:02 +08:00
2013-12-09 00:09:08 +08:00
pkgname=django-simple-captcha
2014-04-02 22:33:42 +08:00
pkgver=0.4.2
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)
2014-04-02 22:33:42 +08:00
md5sums=('da81d1d4c1954df91ccfc7558f52c0a5')
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
}