diff options
author | Leo <thinkabit.ukim@gmail.com> | 2019-04-23 13:19:55 -0300 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2019-04-24 08:37:46 +0000 |
commit | 4f7d05c6e0218565be67b7cda6dbca2086ff52c2 (patch) | |
tree | 096dae10e2e947e6f067eaf1dfb50ed6aec5de09 /community/py-opengl | |
parent | 34052f9682d148ca6f98806c9fbd0f091a9bf17f (diff) | |
download | aports-4f7d05c6e0218565be67b7cda6dbca2086ff52c2.tar.bz2 aports-4f7d05c6e0218565be67b7cda6dbca2086ff52c2.tar.xz |
community/py-opengl: create py3-opengl pkg, fix license
Diffstat (limited to 'community/py-opengl')
-rw-r--r-- | community/py-opengl/APKBUILD | 42 |
1 files changed, 31 insertions, 11 deletions
diff --git a/community/py-opengl/APKBUILD b/community/py-opengl/APKBUILD index b6adc2e0fb..a6b8e08c59 100644 --- a/community/py-opengl/APKBUILD +++ b/community/py-opengl/APKBUILD @@ -1,29 +1,49 @@ +# Contributor: Leo <thinkabit.ukim@gmail.com> # Contributor: Francesco Colista <fcolista@alpinelinux.org> # Maintainer: Francesco Colista <fcolista@alpinelinux.org> pkgname=py-opengl _pkgname=PyOpenGL pkgver=3.1.3b2 -pkgrel=0 -pkgdesc="Standard OpenGL bindings for Python" +pkgrel=1 +pkgdesc="Standard OpenGL bindings" url="http://pyopengl.sourceforge.net" +options="!check" arch="noarch" -license="BSD" -depends="python2 freeglut mesa-gles py-pillow py-numpy>=1.14.3-r1" -depends_dev="" -makedepends="$depends_dev python2-dev py-setuptools freeglut-dev" -install="" -subpackages="" +license="BSD-3-Clause" +makedepends="py3-setuptools py-setuptools" +subpackages=" + py3-opengl:_py3:noarch + py2-opengl:_py2:noarch" 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 + python2 setup.py build + python3 setup.py build } package() { + mkdir -p "$pkgdir" +} + +_py() { + local python="$1" + pkgdesc="$pkgdesc (for $python)" + depends="$python" + install_if="$pkgname=$pkgver-r$pkgrel $python" + cd "$builddir" - python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1 + $python setup.py install --prefix=/usr --root="$subpkgdir" +} + +_py2() { + replaces="$pkgname" + _py python2 +} + +_py3() { + _py python3 } sha512sums="bc21e68ec6956b648725ac2db71435eb9cbe9925e52a5215dd553e2c933063f57e1ee44a48818b973be29160a00b03247c5e2157cf67e06b0d854d3dac369e80 PyOpenGL-3.1.3b2.tar.gz" |