[arch-commits] Commit in python-kivy/repos (4 files)
Felix Yan
felixonmars at archlinux.org
Sun Dec 25 16:55:54 UTC 2016
Date: Sunday, December 25, 2016 @ 16:55:53
Author: felixonmars
Revision: 201995
archrelease: copy trunk to community-staging-i686, community-staging-x86_64
Added:
python-kivy/repos/community-staging-i686/
python-kivy/repos/community-staging-i686/PKGBUILD
(from rev 201994, python-kivy/trunk/PKGBUILD)
python-kivy/repos/community-staging-x86_64/
python-kivy/repos/community-staging-x86_64/PKGBUILD
(from rev 201994, python-kivy/trunk/PKGBUILD)
-----------------------------------+
community-staging-i686/PKGBUILD | 64 ++++++++++++++++++++++++++++++++++++
community-staging-x86_64/PKGBUILD | 64 ++++++++++++++++++++++++++++++++++++
2 files changed, 128 insertions(+)
Copied: python-kivy/repos/community-staging-i686/PKGBUILD (from rev 201994, python-kivy/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD (rev 0)
+++ community-staging-i686/PKGBUILD 2016-12-25 16:55:53 UTC (rev 201995)
@@ -0,0 +1,64 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Lev Lybin <lev.lybin at gmail.com>
+# Contributor: lagrange <flkazemakase at gmail.com>
+# Contributor: mid-kid <esteve.varela at gmail.com>
+
+pkgbase=python-kivy
+pkgname=('python-kivy' 'python2-kivy')
+pkgver=1.9.1
+pkgrel=2
+pkgdesc="A software library for rapid development of hardware-accelerated multitouch applications."
+arch=('i686' 'x86_64')
+url="http://kivy.org/"
+license=('MIT')
+makedepends=('python-setuptools' 'python2-setuptools' 'cython' 'cython2' 'gstreamer' 'sdl2_ttf'
+ 'sdl2_mixer' 'sdl2_image')
+checkdepends=('python-nose' 'python2-nose' 'python2-mock' 'python-coverage' 'python2-coverage'
+ 'python-dbus' 'python2-dbus' 'python-gobject' 'python2-gobject' 'xorg-server-xvfb'
+ 'git' 'mtdev' 'xclip' 'xsel' 'gst-plugins-base' 'gst-plugins-good')
+source=("https://pypi.python.org/packages/source/K/Kivy/kivy-$pkgver.tar.gz")
+sha256sums=('29bc45be34c26a8acb1dafdd329145f997a473be344cd052659f821f6478637e')
+
+prepare() {
+ # For better metadata
+ export KIVY_USE_SETUPTOOLS=1
+
+ export LC_CTYPE=en_US.UTF-8
+
+ cp -a kivy-$pkgver{,-py2}
+}
+
+build() {
+ cd "$srcdir"/kivy-$pkgver
+ python setup.py build build_ext --inplace
+
+ cd "$srcdir"/kivy-$pkgver-py2
+ python2 setup.py build build_ext --inplace
+}
+
+check() {
+ cd "$srcdir"/kivy-$pkgver
+ PYTHONPATH="$PWD:$PYTHONPATH" xvfb-run -s "-screen 0 1280x720x24 -ac +extension GLX" make test
+
+ cd "$srcdir"/kivy-$pkgver-py2
+ PYTHONPATH="$PWD:$PYTHONPATH" xvfb-run -s "-screen 0 1280x720x24 -ac +extension GLX" make PYTHON=python2 test
+}
+
+package_python-kivy() {
+ depends=('python' 'gstreamer' 'sdl2_ttf' 'sdl2_mixer' 'sdl2_image')
+
+ cd kivy-$pkgver
+ python setup.py install --prefix=/usr --root="$pkgdir"
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-kivy() {
+ depends=('python2' 'gstreamer' 'sdl2_ttf' 'sdl2_mixer' 'sdl2_image')
+
+ cd kivy-$pkgver-py2
+ python2 setup.py install --prefix=/usr --root="$pkgdir"
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+
+ mv "$pkgdir"/usr/share/kivy{,2}-examples
+}
Copied: python-kivy/repos/community-staging-x86_64/PKGBUILD (from rev 201994, python-kivy/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2016-12-25 16:55:53 UTC (rev 201995)
@@ -0,0 +1,64 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Lev Lybin <lev.lybin at gmail.com>
+# Contributor: lagrange <flkazemakase at gmail.com>
+# Contributor: mid-kid <esteve.varela at gmail.com>
+
+pkgbase=python-kivy
+pkgname=('python-kivy' 'python2-kivy')
+pkgver=1.9.1
+pkgrel=2
+pkgdesc="A software library for rapid development of hardware-accelerated multitouch applications."
+arch=('i686' 'x86_64')
+url="http://kivy.org/"
+license=('MIT')
+makedepends=('python-setuptools' 'python2-setuptools' 'cython' 'cython2' 'gstreamer' 'sdl2_ttf'
+ 'sdl2_mixer' 'sdl2_image')
+checkdepends=('python-nose' 'python2-nose' 'python2-mock' 'python-coverage' 'python2-coverage'
+ 'python-dbus' 'python2-dbus' 'python-gobject' 'python2-gobject' 'xorg-server-xvfb'
+ 'git' 'mtdev' 'xclip' 'xsel' 'gst-plugins-base' 'gst-plugins-good')
+source=("https://pypi.python.org/packages/source/K/Kivy/kivy-$pkgver.tar.gz")
+sha256sums=('29bc45be34c26a8acb1dafdd329145f997a473be344cd052659f821f6478637e')
+
+prepare() {
+ # For better metadata
+ export KIVY_USE_SETUPTOOLS=1
+
+ export LC_CTYPE=en_US.UTF-8
+
+ cp -a kivy-$pkgver{,-py2}
+}
+
+build() {
+ cd "$srcdir"/kivy-$pkgver
+ python setup.py build build_ext --inplace
+
+ cd "$srcdir"/kivy-$pkgver-py2
+ python2 setup.py build build_ext --inplace
+}
+
+check() {
+ cd "$srcdir"/kivy-$pkgver
+ PYTHONPATH="$PWD:$PYTHONPATH" xvfb-run -s "-screen 0 1280x720x24 -ac +extension GLX" make test
+
+ cd "$srcdir"/kivy-$pkgver-py2
+ PYTHONPATH="$PWD:$PYTHONPATH" xvfb-run -s "-screen 0 1280x720x24 -ac +extension GLX" make PYTHON=python2 test
+}
+
+package_python-kivy() {
+ depends=('python' 'gstreamer' 'sdl2_ttf' 'sdl2_mixer' 'sdl2_image')
+
+ cd kivy-$pkgver
+ python setup.py install --prefix=/usr --root="$pkgdir"
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-kivy() {
+ depends=('python2' 'gstreamer' 'sdl2_ttf' 'sdl2_mixer' 'sdl2_image')
+
+ cd kivy-$pkgver-py2
+ python2 setup.py install --prefix=/usr --root="$pkgdir"
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+
+ mv "$pkgdir"/usr/share/kivy{,2}-examples
+}
More information about the arch-commits
mailing list