[arch-commits] Commit in pyglet/repos (2 files)
Felix Yan
felixonmars at gemini.archlinux.org
Wed Dec 1 14:56:42 UTC 2021
Date: Wednesday, December 1, 2021 @ 14:56:42
Author: felixonmars
Revision: 1059574
archrelease: copy trunk to community-staging-any
Added:
pyglet/repos/community-staging-any/
pyglet/repos/community-staging-any/PKGBUILD
(from rev 1059571, pyglet/trunk/PKGBUILD)
----------+
PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
Copied: pyglet/repos/community-staging-any/PKGBUILD (from rev 1059571, pyglet/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2021-12-01 14:56:42 UTC (rev 1059574)
@@ -0,0 +1,38 @@
+# Maintainer: Kyle Keen <keenerd at gmail.com>
+# Contributor: Douglas Soares de Andrade <douglas at archlinux.org>
+# Contributor: Ryan Coyner <rcoyner at gmail.com>
+# Contributor: Daniel J Griffiths <ghost1227 at archlinux.us>
+
+pkgbase=pyglet
+pkgname=('python-pyglet')
+pkgver=1.5.21
+pkgrel=2
+pkgdesc="A cross-platform windowing and multimedia library for Python"
+arch=('any')
+url="https://github.com/pyglet/pyglet"
+license=('BSD')
+depends=('python' 'glu' 'python-future')
+makedepends=('python-setuptools')
+optdepends=('ffmpeg: provides audio&video support'
+ 'openal: live audio')
+source=("https://files.pythonhosted.org/packages/source/p/pyglet/pyglet-$pkgver.zip")
+md5sums=('a5a153548e5004a607a30a4a6ff36c51')
+
+prepare() {
+ cd "$srcdir/$pkgbase-$pkgver"
+
+ # https://bitbucket.org/pyglet/pyglet/issues/157/please-do-not-bundle-the-future-module
+ rm -rf pyglet/extlibs/future/
+}
+
+build() {
+ cd "$srcdir/$pkgbase-$pkgver"
+ python3 setup.py build
+}
+
+package_python-pyglet() {
+ depends=('python' 'glu' 'python-future')
+ cd "$srcdir/$pkgbase-$pkgver"
+ python3 setup.py install --root="$pkgdir" --optimize=1
+ install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
More information about the arch-commits
mailing list