Felix Yan pushed to branch main at Arch Linux / Packaging / Packages / pyopengl
Commits:
cdef84be by loqs at 2025-12-24T03:53:04+08:00
Switch to PEP 517 based build
- - - - -
2 changed files:
- .SRCINFO
- PKGBUILD
Changes:
=====================================
.SRCINFO
=====================================
@@ -5,7 +5,10 @@ pkgbase = pyopengl
url = http://pyopengl.sourceforge.net/
arch = any
license = BSD-3-Clause
+ makedepends = python-build
makedepends = python-setuptools
+ makedepends = python-installer
+ makedepends = python-wheel
depends = python
depends = freeglut
source =
https://pypi.python.org/packages/source/P/PyOpenGL/pyopengl-3.1.10.tar.gz
=====================================
PKGBUILD
=====================================
@@ -13,13 +13,19 @@ url="https://github.com/mcfletch/pyopengl"
license=('BSD-3-Clause')
arch=('any')
depends=('python' 'freeglut')
-makedepends=('python-setuptools')
+makedepends=('python-build' 'python-setuptools' 'python-installer'
'python-wheel')
source=("https://pypi.python.org/packages/source/P/PyOpenGL/pyopengl-${pkgver}.tar.gz")
sha512sums=('f11c94e442e0954453974900de5c1ef984d19f92ffc152fcc904a81aedc39ed294f4c51a6f1247e85499224f60422c4567e52516c156079d4efabbdd437e8f7d')
+build() {
+ cd pyopengl-${pkgver}
+
+ python -m build --wheel --no-isolation
+}
+
package_python-opengl() {
cd pyopengl-${pkgver}
- python setup.py install --root="${pkgdir}" --optimize=1
- install -Dm644 license.txt -t "${pkgdir}/usr/share/licenses/${pkgname}"
+ python -m installer --destdir="$pkgdir" dist/*.whl
+ install -Dm644 license.txt -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/pyopengl/-/commit/cdef84bef57b6ee5eec2a5106e1fa1820d5c7a64
--
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/pyopengl/-/commit/cdef84bef57b6ee5eec2a5106e1fa1820d5c7a64
You're receiving this email because of your account on gitlab.archlinux.org.