python-PyOpenGL: add python3 flavor

Note: some recommended dependencies may be needed, see
http://pyopengl.sourceforge.net/documentation/installation.html.
This commit is contained in:
Alessio Sergi 2017-01-14 21:09:24 +01:00
parent 61c0cbb524
commit 3b1d035342
2 changed files with 20 additions and 8 deletions

View file

@ -1,20 +1,31 @@
# Template file for 'python-PyOpenGL' # Template file for 'python-PyOpenGL'
pkgname=python-PyOpenGL pkgname=python-PyOpenGL
version=3.1.0 version=3.1.0
revision=1 revision=2
wrksrc="PyOpenGL-${version}"
build_style=python2-module
noarch=yes noarch=yes
hostmakedepends="python-devel" wrksrc="PyOpenGL-${version}"
makedepends="${hostmakedepends}" build_style=python-module
pycompile_module="OpenGL" pycompile_module="OpenGL"
short_desc="Standard OpenGL bindings for Python" hostmakedepends="python-setuptools python3-setuptools"
depends="python"
short_desc="Standard OpenGL bindings for Python2"
maintainer="Alain Kalker <a.c.kalker@gmail.com>" maintainer="Alain Kalker <a.c.kalker@gmail.com>"
license="BSD" license="3-clause-BSD"
homepage="http://pyopengl.sourceforge.net/" homepage="http://pyopengl.sourceforge.net/"
distfiles="${PYPI_SITE}/P/PyOpenGL/PyOpenGL-${version}.tar.gz" distfiles="${PYPI_SITE}/P/PyOpenGL/PyOpenGL-${version}.tar.gz"
checksum=9b47c5c3a094fa518ca88aeed35ae75834d53e4285512c61879f67a48c94ddaf checksum=9b47c5c3a094fa518ca88aeed35ae75834d53e4285512c61879f67a48c94ddaf
post_install() { post_install() {
vlicense license.txt 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
}
} }

1
srcpkgs/python3-PyOpenGL Symbolic link
View file

@ -0,0 +1 @@
python-PyOpenGL