archrelease: copy trunk to community-any
[ArchLinux/community.git] / python-graphql-core / trunk / PKGBUILD
blobf1fa331aac4332e2ab7e33b97782cfddf7bc79b1
1 # Maintainer: Maxime Gauduin <alucryd@archlinux.org>
3 pkgname=python-graphql-core
4 pkgver=3.2.3
5 pkgrel=2
6 pkgdesc='GraphQL base implementation for Python'
7 url=https://github.com/graphql-python/graphql-core
8 arch=(any)
9 license=(MIT)
10 depends=(
11   python-six
12   python-promise
13   python-rx
15 makedepends=(
16   git
17   python-setuptools
19 _tag=430ee891a52d239adadf133d873fdca2a3fe009b
20 source=(git+https://github.com/graphql-python/graphql-core.git#tag=${_tag})
21 sha256sums=(SKIP)
23 pkgver() {
24   cd graphql-core
26   git describe --tags | sed 's/^v//'
29 build() {
30   cd graphql-core
32   python setup.py build
35 package() {
36   cd graphql-core
38   python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1
39   install -Dm 644 LICENSE -t "${pkgdir}"/usr/share/licenses/python-graphql-core/
42 # vim: ts=2 sw=2 et: