diff options
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 29 |
2 files changed, 45 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..b1371c610111 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = python-django-recaptcha-git + pkgdesc = Django reCAPTCHA form field/widget integration app + pkgver = 2.0.6.r7.gdc7cbfe + pkgrel = 1 + url = https://github.com/praekelt/django-recaptcha + arch = any + license = BSD3 + makedepends = python-setuptools + makedepends = python-wheel + depends = mkdocs + provides = python-django-recaptcha + source = git+https://github.com/praekelt/django-recaptcha + sha256sums = SKIP + +pkgname = python-django-recaptcha-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..7cb1ac722750 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,29 @@ +# Maintainer: AlphaJack <alphajack at tuta dot io> + +pkgname="python-django-recaptcha-git" +pkgver=2.0.6.r7.gdc7cbfe +pkgrel=1 +pkgdesc="Django reCAPTCHA form field/widget integration app" +url="https://github.com/praekelt/django-recaptcha" +license=("BSD3") +arch=("any") +provides=("python-django-recaptcha") +depends=("mkdocs") +makedepends=("python-setuptools" "python-wheel") +source=("git+$url") +sha256sums=("SKIP") + +pkgver(){ + cd "django-recaptcha" + git describe --long --tags | sed "s/\([^-]*-g\)/r\1/;s/-/./g" +} + +build(){ + cd "django-recaptcha" + python setup.py build +} + +package(){ + cd "django-recaptcha" + python setup.py install --root="$pkgdir" --optimize=1 +} |