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:
parent
61c0cbb524
commit
3b1d035342
2 changed files with 20 additions and 8 deletions
|
@ -1,20 +1,31 @@
|
|||
# Template file for 'python-PyOpenGL'
|
||||
pkgname=python-PyOpenGL
|
||||
version=3.1.0
|
||||
revision=1
|
||||
wrksrc="PyOpenGL-${version}"
|
||||
build_style=python2-module
|
||||
revision=2
|
||||
noarch=yes
|
||||
hostmakedepends="python-devel"
|
||||
makedepends="${hostmakedepends}"
|
||||
wrksrc="PyOpenGL-${version}"
|
||||
build_style=python-module
|
||||
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>"
|
||||
license="BSD"
|
||||
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
|
||||
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
1
srcpkgs/python3-PyOpenGL
Symbolic link
|
@ -0,0 +1 @@
|
|||
python-PyOpenGL
|
Loading…
Reference in a new issue