mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
26 lines
755 B
Bash
26 lines
755 B
Bash
pkgname=django-oauth2-provider
|
|
pkgver=0.2.5
|
|
pkgrel=1
|
|
pkgdesc="Django application that provides customizable OAuth2_ authentication for your Django projects"
|
|
url="https://github.com/caffeinehit/django-oauth2-provider"
|
|
arch=('x86_64')
|
|
license=('BSD')
|
|
depends=('django' 'python2')
|
|
makedepends=('python2-distribute')
|
|
source=("https://pypi.python.org/packages/source/d/$pkgname/$pkgname-$pkgver.tar.gz")
|
|
md5sums=('5c434536f06f7a7f9e9c5b839d75fb44')
|
|
|
|
build() {
|
|
cd $srcdir/$pkgname-$pkgver
|
|
python2 setup.py build
|
|
}
|
|
|
|
package() {
|
|
cd $srcdir/$pkgname-$pkgver
|
|
python2 setup.py install --prefix=/usr --root=$pkgdir
|
|
|
|
# License.
|
|
install -d $pkgdir/usr/share/licenses/$pkgname
|
|
cp LICENSE $pkgdir/usr/share/licenses/$pkgname/license.txt
|
|
}
|