mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 18:42:12 +08:00
33 lines
986 B
Bash
33 lines
986 B
Bash
# Maintainer: UtG <utg[dot]chakra.linux[at]gmail[dot]com>
|
|
|
|
pkgname=django-rest-framework
|
|
_pkgname=djangorestframework
|
|
pkgver=2.3.9
|
|
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://pypi.python.org/packages/source/d/$_pkgname/$_pkgname-$pkgver.tar.gz"
|
|
"license.txt")
|
|
md5sums=('2f42315da73e24df86c537c418c12b66'
|
|
'ad6cce52252ca648944d309abe93bd72')
|
|
|
|
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.txt $pkgdir/usr/share/licenses/$pkgname/license.txt
|
|
}
|
|
|