desktop/django-rest-framework/PKGBUILD
Adrian Chaves Fernandez (Gallaecio) 21cbb6116e Django REST Framework 2.3.6
2013-06-27 19:09:05 +00:00

30 lines
906 B
Bash

pkgname=django-rest-framework
_pkgname=djangorestframework
pkgver=2.3.6
pkgrel=1
pkgdesc="Lightweight REST framework for Django to write RESTful Web APIs"
url="http://django-rest-framework.org/"
arch=('any')
license=('BSD')
depends=('django' 'python2' 'python2-urlobject')
makedepends=('python2-distribute')
optdepends=('django-oauth2-provider: Support for OAuth2 authentication.')
source=("https://pypi.python.org/packages/source/d/$_pkgname/$_pkgname-$pkgver.tar.gz"
"license.txt")
md5sums=('9cbe0161fc5f8dcfc34df601528d4dc4'
'ad6cce52252ca648944d309abe93bd72')
build() {
cd $srcdir/$_pkgname-$pkgver
python2 setup.py build
}
package() {
cd $srcdir/$_pkgname-$pkgver
python2 setup.py install --prefix=/usr --root=$pkgdir
# License.
install -d $pkgdir/usr/share/licenses/$pkgname
cp $srcdir/license.txt $pkgdir/usr/share/licenses/$pkgname/license.txt
}