~roshless/PKGBUILDs

ab13b6f1bdbfd31ee279f032c8f70796668348c9 — Roshless a month ago e4fa3d9
Initial upload: python-graphene-django 2.15.0-1
2 files changed, 41 insertions(+), 0 deletions(-)

A python-graphene-django/.SRCINFO
A python-graphene-django/PKGBUILD
A python-graphene-django/.SRCINFO => python-graphene-django/.SRCINFO +15 -0
@@ 0,0 1,15 @@
pkgbase = python-graphene-django
	pkgdesc = Graphene Django integration
	pkgver = 2.15.0
	pkgrel = 1
	url = https://github.com/graphql-python/graphene-django
	arch = any
	license = MIT
	makedepends = python-setuptools
	depends = python
	depends = python-django
	depends = python-graphene
	source = https://files.pythonhosted.org/packages/source/g/graphene-django/graphene-django-2.15.0.tar.gz
	md5sums = dca5a9ef3976690d724fe1975bf49fe5

pkgname = python-graphene-django

A python-graphene-django/PKGBUILD => python-graphene-django/PKGBUILD +26 -0
@@ 0,0 1,26 @@
# Maintainer: Roshless <pkg@roshless.com>

pkgname=python-graphene-django
_name=${pkgname#python-}
pkgver=2.15.0
pkgrel=1
pkgdesc='Graphene Django integration'
url='https://github.com/graphql-python/graphene-django'
arch=('any')
license=('MIT')
depends=('python' 'python-django' 'python-graphene')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")

build() {
  cd $_name-$pkgver
  python setup.py build
}

package() {
  cd $_name-$pkgver
  python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
  install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
}

md5sums=('dca5a9ef3976690d724fe1975bf49fe5')