aboutsummaryrefslogtreecommitdiffstats
path: root/main/py-django-simple-captcha/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'main/py-django-simple-captcha/APKBUILD')
-rw-r--r--main/py-django-simple-captcha/APKBUILD40
1 files changed, 40 insertions, 0 deletions
diff --git a/main/py-django-simple-captcha/APKBUILD b/main/py-django-simple-captcha/APKBUILD
new file mode 100644
index 0000000000..5f9b2c44f8
--- /dev/null
+++ b/main/py-django-simple-captcha/APKBUILD
@@ -0,0 +1,40 @@
+# Contributor: <xmingske@gmail.com>
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+_pkgname=django-simple-captcha
+pkgname=py-${_pkgname}
+pkgver=0.0.1
+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/${pkgver}.tar.gz"
+source="$pkgname-$pkgver.tar.gz::https://github.com/mbi/django-simple-captcha/archive/master.tar.gz"
+
+#_builddir="${srcdir}/${_pkgname}-${pkgver}"
+_builddir="${srcdir}/${_pkgname}-master"
+
+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="eb587fecb7d3afdcd418766d906a9608 py-django-simple-captcha-0.0.1.tar.gz"
+sha256sums="7200fbc17901f0f071abe5af316710292013ef8bc547bfc04587567efc9b30e9 py-django-simple-captcha-0.0.1.tar.gz"
+sha512sums="69061a53e830b68b9abdf34bba8fa5a2b40d59900d662b90d4a1d4577cc4b24e227b9d05711030b353e0d02b881774d0dacca3b59c04b28e49031f92adce9c40 py-django-simple-captcha-0.0.1.tar.gz"