[arch-commits] Commit in (4 files)
Felix Yan
felixonmars at archlinux.org
Sat Jul 9 10:35:42 UTC 2016
Date: Saturday, July 9, 2016 @ 10:35:42
Author: felixonmars
Revision: 182560
addpkg: python-kivy 1.9.1-1
Added:
python-kivy/
python-kivy/repos/
python-kivy/trunk/
python-kivy/trunk/PKGBUILD
----------+
PKGBUILD | 64 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 64 insertions(+)
Added: python-kivy/trunk/PKGBUILD
===================================================================
--- python-kivy/trunk/PKGBUILD (rev 0)
+++ python-kivy/trunk/PKGBUILD 2016-07-09 10:35:42 UTC (rev 182560)
@@ -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=1
+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
+}
Property changes on: python-kivy/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
More information about the arch-commits
mailing list