[arch-commits] Commit in pyglet/repos (2 files)

Evangelos Foutras foutrelis at archlinux.org
Sun Jul 8 12:50:09 UTC 2018


    Date: Sunday, July 8, 2018 @ 12:49:58
  Author: foutrelis
Revision: 354818

archrelease: copy trunk to community-staging-any

Added:
  pyglet/repos/community-staging-any/
  pyglet/repos/community-staging-any/PKGBUILD
    (from rev 354816, pyglet/trunk/PKGBUILD)

----------+
 PKGBUILD |   50 ++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 50 insertions(+)

Copied: pyglet/repos/community-staging-any/PKGBUILD (from rev 354816, pyglet/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2018-07-08 12:49:58 UTC (rev 354818)
@@ -0,0 +1,50 @@
+# $Id$
+# 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' 'python2-pyglet')
+pkgver=1.3.2
+pkgrel=2
+pkgdesc="A cross-platform windowing and multimedia library for Python"
+arch=('any')
+url="https://bitbucket.org/pyglet/pyglet/wiki/Home"
+license=('BSD')
+makedepends=('python' 'python2' 'python-setuptools' 'python2-setuptools')
+#optdepends=('avbin: provides audio&video support')
+source=("https://files.pythonhosted.org/packages/source/p/pyglet/pyglet-$pkgver.tar.gz")
+md5sums=('b3ea0d85aed911915f44ce6a14b19691')
+
+prepare() {
+	cd "$srcdir"
+
+	# https://bitbucket.org/pyglet/pyglet/issues/157/please-do-not-bundle-the-future-module
+	rm -rf pyglet-$pkgver/pyglet/extlibs/future/
+	cp -r "$srcdir/$pkgbase-$pkgver" "$srcdir/${pkgbase}2-$pkgver"
+}
+
+build() {
+	cd "$srcdir/${pkgbase}2-$pkgver"
+	python2 setup.py build
+
+	cd "$srcdir/$pkgbase-$pkgver"
+	python3 setup.py build
+}
+
+package_python2-pyglet() {
+	depends=('python2' 'glu' 'python2-future')
+	cd "$srcdir/${pkgbase}2-$pkgver"
+	find ./ -type f -name '*.py' | xargs -n 1 sed -i 's|/usr/bin/env python$|/usr/bin/env python2|'
+	find ./ -type f -name '*.py' | xargs -n 1 sed -i 's|/usr/bin/python|/usr/bin/env python2|'
+	python2 setup.py install --root="$pkgdir" --optimize=1
+	install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+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