desktop/django-rest-framework/PKGBUILD

30 lines
951 B
Bash
Raw Normal View History

2013-05-17 13:29:57 +08:00
pkgname=django-rest-framework
2015-11-12 20:41:22 +08:00
pkgver=3.3.1
2013-05-17 13:29:57 +08:00
pkgrel=1
pkgdesc="Lightweight REST framework for Django to write RESTful Web APIs"
url="http://django-rest-framework.org/"
2014-04-13 22:33:19 +08:00
arch=('x86_64')
2013-05-17 13:29:57 +08:00
license=('BSD')
depends=('django' 'python2' 'python2-urlobject')
makedepends=('python2-distribute')
optdepends=('django-oauth2-provider: Support for OAuth2 authentication.')
2015-05-26 17:20:26 +08:00
source=("https://github.com/tomchristie/django-rest-framework/archive/${pkgver}.tar.gz"
"LICENSE")
2015-11-12 20:41:22 +08:00
sha256sums=('8b6e5c10c90851ae80607a22beb7173a2787100959bd9ba9c1e0efa28798e8b7'
'cb6ed5240f1c007779c2299753f210b6fb36d030f492d190af99c6db62a09146')
2013-05-17 13:29:57 +08:00
build() {
2015-05-26 17:20:26 +08:00
cd $srcdir/$pkgname-$pkgver
2013-05-17 13:29:57 +08:00
python2 setup.py build
}
package() {
2015-05-26 17:20:26 +08:00
cd $srcdir/$pkgname-$pkgver
2014-04-13 22:33:19 +08:00
python2 setup.py install --prefix=/usr --root="$pkgdir/" --optimize=1
2013-05-17 13:29:57 +08:00
# License.
install -d $pkgdir/usr/share/licenses/$pkgname
2015-05-26 17:20:26 +08:00
cp $srcdir/LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
2013-05-17 13:29:57 +08:00
}
2014-04-13 22:33:19 +08:00