desktop/django-rest-framework/PKGBUILD
2015-11-12 13:41:22 +01:00

30 lines
951 B
Bash

pkgname=django-rest-framework
pkgver=3.3.1
pkgrel=1
pkgdesc="Lightweight REST framework for Django to write RESTful Web APIs"
url="http://django-rest-framework.org/"
arch=('x86_64')
license=('BSD')
depends=('django' 'python2' 'python2-urlobject')
makedepends=('python2-distribute')
optdepends=('django-oauth2-provider: Support for OAuth2 authentication.')
source=("https://github.com/tomchristie/django-rest-framework/archive/${pkgver}.tar.gz"
"LICENSE")
sha256sums=('8b6e5c10c90851ae80607a22beb7173a2787100959bd9ba9c1e0efa28798e8b7'
'cb6ed5240f1c007779c2299753f210b6fb36d030f492d190af99c6db62a09146')
build() {
cd $srcdir/$pkgname-$pkgver
python2 setup.py build
}
package() {
cd $srcdir/$pkgname-$pkgver
python2 setup.py install --prefix=/usr --root="$pkgdir/" --optimize=1
# License.
install -d $pkgdir/usr/share/licenses/$pkgname
cp $srcdir/LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
}