summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorMawcomW2015-07-14 20:56:54 -0300
committerMawcomW2015-07-14 20:56:54 -0300
commitf73fbea866333d750b028c6878e7282aa4b152d7 (patch)
tree7e4de0afdce7655ecb57ec1ac937751ceb2ff0e7 /PKGBUILD
downloadaur-f73fbea866333d750b028c6878e7282aa4b152d7.tar.gz
Initial commit.
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD53
1 files changed, 53 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..279fcee72d1
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,53 @@
+# Maintainer: mawcomw <mawcomw@gmail.com>
+
+pkgbase=python-django-xforwardedfor-middleware
+pkgname=('python-django-xforwardedfor-middleware' 'python2-django-xforwardedfor-middleware')
+pkgver=1.0
+pkgrel=1
+arch=( 'any' )
+url="https://github.com/allo-/django-xforwardedfor-middleware"
+license=( 'Public Domain' )
+makedepends=('python2' 'python2-setuptools' 'python' 'python-setuptools')
+source=( "https://pypi.python.org/packages/source/d/django-xforwardedfor-middleware/django-xforwardedfor-middleware-${pkgver}.tar.gz" )
+md5sums=( '9132e555e58762f6039e5cec4feeeb39' )
+
+prepare() {
+ mv django-xforwardedfor-middleware-1.0 python-django-xforwardedfor-middleware-${pkgver}
+ cp -r python-django-xforwardedfor-middleware-${pkgver} python2-django-xforwardedfor-middleware-${pkgver}
+}
+
+build() {
+ cd $srcdir/python-django-xforwardedfor-middleware-${pkgver}
+ python setup.py build
+
+ cd $srcdir/python2-django-xforwardedfor-middleware-${pkgver}
+ python2 setup.py build
+}
+
+#check(){
+# cd $srcdir/python-django-xforwardedfor-middleware-${pkgver}
+# python2 setup.py test
+#
+# cd $srcdir/python2-django-xforwardedfor-middleware-${pkgver}
+# python setup.py test
+#}
+
+package_python-django-xforwardedfor-middleware() {
+ depends=('python' )
+ pkgdesc="Python3 Django X-Forwarded-For Middleware."
+
+ cd python-django-xforwardedfor-middleware-${pkgver}
+ python setup.py install --root="${pkgdir}" --optimize=1
+
+# install -Dm644 LICENSE.txt "${pkgdir}"/usr/share/licenses/$pkgname/LICENSE.txt
+}
+
+package_python2-django-xforwardedfor-middleware() {
+ depends=('python2' )
+ pkgdesc="Python2 Django X-Forwarded-For Middleware."
+
+ cd python2-django-xforwardedfor-middleware-${pkgver}
+ python2 setup.py install --root="${pkgdir}" --optimize=1
+
+# install -Dm644 LICENSE.txt "${pkgdir}"/usr/share/licenses/$pkgname/LICENSE.txt
+}