mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-02-03 21:07:14 +08:00
30 lines
1.1 KiB
Bash
30 lines
1.1 KiB
Bash
pkgname=django-rest-framework
|
|
pkgver=3.2.3
|
|
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=('3cc0a8e31b340a7f93b8cbbcef589fabf9026599f4161035ec317048f99fd2db13849548e3a38e81cf2585e45368c9a6359225490166c71ef55bcf59c394376b'
|
|
'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
|
|
}
|
|
|