blob: 60bce6b1a8a7545bd22e87652369e28b00f5424e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# Maintainer: mawcomw <mawcomw@gmail.com>
pkgbase=python-django-xforwardedfor-middleware
pkgname=python-django-xforwardedfor-middleware
pkgver=2.0
pkgrel=4
arch=( 'any' )
url="https://github.com/allo-/django-xforwardedfor-middleware"
license=( 'Public Domain' )
makedepends=('python' 'python-setuptools')
source=( "https://pypi.python.org/packages/source/d/django-xforwardedfor-middleware/django-xforwardedfor-middleware-${pkgver}.tar.gz" )
md5sums=('d292f908820a8bcfac249f47655e88fc')
prepare() {
mv django-xforwardedfor-middleware-${pkgver} python-django-xforwardedfor-middleware-${pkgver}
}
build() {
cd $srcdir/python-django-xforwardedfor-middleware-${pkgver}
python setup.py build
}
check() {
cd $srcdir/python-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
}
|