void-packages/srcpkgs/python-PyOpenGL/template
Alessio Sergi 3b1d035342 python-PyOpenGL: add python3 flavor
Note: some recommended dependencies may be needed, see
http://pyopengl.sourceforge.net/documentation/installation.html.
2017-01-14 21:24:53 +01:00

31 lines
814 B
Bash

# Template file for 'python-PyOpenGL'
pkgname=python-PyOpenGL
version=3.1.0
revision=2
noarch=yes
wrksrc="PyOpenGL-${version}"
build_style=python-module
pycompile_module="OpenGL"
hostmakedepends="python-setuptools python3-setuptools"
depends="python"
short_desc="Standard OpenGL bindings for Python2"
maintainer="Alain Kalker <a.c.kalker@gmail.com>"
license="3-clause-BSD"
homepage="http://pyopengl.sourceforge.net/"
distfiles="${PYPI_SITE}/P/PyOpenGL/PyOpenGL-${version}.tar.gz"
checksum=9b47c5c3a094fa518ca88aeed35ae75834d53e4285512c61879f67a48c94ddaf
post_install() {
vlicense license.txt LICENSE
}
python3-PyOpenGL_package() {
noarch=yes
depends="python3"
pycompile_module="OpenGL"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense license.txt LICENSE
}
}