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 <keen...@gmail.com>
+# Contributor: Douglas Soares de Andrade <doug...@archlinux.org>
+# Contributor: Ryan Coyner <rcoy...@gmail.com>
+# Contributor: Daniel J Griffiths <ghost1...@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"
+}

Reply via email to