mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-02-09 21:18:21 +08:00
30 lines
1.1 KiB
Bash
30 lines
1.1 KiB
Bash
pkgname=django-rest-framework
|
|
pkgver=3.2.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")
|
|
sha512sums=('8d4f4538e8b50296e66af8e9c823ed794a1310bfd809646d47dec4f80e054f898645e03cdb566ef443675b08bf30fa726b0224f24b19548f22877c6a138777e9'
|
|
'03098ef062914bb990791f77659df2844a73065ac9e912bc96bfa51c25ad76c7ee1d41e028804fce95590609912317cbcb03fbd41828c642b289d6bb0ca46f5a')
|
|
|
|
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
|
|
}
|
|
|