# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py-opengl
_pkgname=PyOpenGL
pkgver=3.1.1a1
pkgrel=1
pkgdesc="Standard OpenGL bindings for Python"
url="http://pyopengl.sourceforge.net"
arch="noarch !s390x"
license="BSD"
depends="python2 freeglut mesa-gles py-pillow py-numpy"
depends_dev=""
makedepends="$depends_dev python2-dev py-setuptools freeglut-dev"
install=""
subpackages=""
source="https://files.pythonhosted.org/packages/source/P/PyOpenGL/$_pkgname-$pkgver.tar.gz"

builddir="$srcdir"/$_pkgname-$pkgver
build() {
	cd "$builddir"
	python2 setup.py build || return 1
}

package() {
	cd "$builddir"
	python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1
}

md5sums="77ee6044ceb2cf952aca89a9b2d3d585  PyOpenGL-3.1.1a1.tar.gz"
sha256sums="c96d909b359abe3271b746bacf7e6ba52935141e2406a8f90231e4e44dfa4075  PyOpenGL-3.1.1a1.tar.gz"
sha512sums="8f4f57b153ee014dc238fe83180cc92f8e789a274fc6b0cbef6f5dec9dbc44cb1ae1f6b142a6c2b4c8c000709338d64f5968939eeb6a2384f87fb63ae99b40d8  PyOpenGL-3.1.1a1.tar.gz"
