Date: Saturday, November 9, 2019 @ 21:58:35 Author: arojas Revision: 524905
Drop python2 Modified: python-kivy/trunk/PKGBUILD ----------+ PKGBUILD | 37 +++++++------------------------------ 1 file changed, 7 insertions(+), 30 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2019-11-09 21:50:57 UTC (rev 524904) +++ PKGBUILD 2019-11-09 21:58:35 UTC (rev 524905) @@ -3,8 +3,7 @@ # Contributor: lagrange <flkazemak...@gmail.com> # Contributor: mid-kid <esteve.var...@gmail.com> -pkgbase=python-kivy -pkgname=('python-kivy' 'python2-kivy') +pkgname=python-kivy pkgver=1.11.1 pkgrel=1 pkgdesc="A software library for rapid development of hardware-accelerated multitouch applications." @@ -11,12 +10,11 @@ arch=('x86_64') url="https://kivy.org/" license=('MIT') -makedepends=('python-setuptools' 'python2-setuptools' 'python-docutils' 'python2-docutils' 'cython' - 'cython2' 'gstreamer' 'sdl2_ttf' 'sdl2_mixer' 'sdl2_image') -checkdepends=('python-pytest' 'python2-pytest' 'python2-mock' 'python-coverage' 'python2-coverage' - 'python-gobject' 'python2-gobject' 'xorg-server-xvfb' 'opencv' 'python-pyenchant' - 'python2-pyenchant' 'git' 'mtdev' 'xclip' 'xsel' 'gtk3' 'gst-plugins-base' - 'gst-plugins-good' 'gst-libav' 'python-dbus' 'python2-dbus') +depends=('python-docutils' 'gstreamer' 'sdl2_ttf' 'sdl2_mixer' 'sdl2_image') +makedepends=('python-setuptools' 'cython') +checkdepends=('python-pytest' 'python-coverage' 'python-gobject' 'xorg-server-xvfb' 'opencv' 'python-pyenchant' + 'git' 'mtdev' 'xclip' 'xsel' 'gtk3' 'gst-plugins-base' + 'gst-plugins-good' 'gst-libav' 'python-dbus') source=("https://pypi.io/packages/source/K/Kivy/Kivy-$pkgver.tar.gz") sha512sums=('d6b34668d9ad9196edcb9a8307d6659868a8f72580018d873bc6e91823461c853c3c92758c0c3013b25faa177dd62ab5d12671411822112b13a9610e4eda3eb0') @@ -25,16 +23,11 @@ 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 - - cd "$srcdir"/Kivy-$pkgver-py2 - python2 setup.py build } check() { @@ -41,26 +34,10 @@ cd "$srcdir"/Kivy-$pkgver python setup.py build_ext --inplace xvfb-run -s "-screen 0 1280x720x24 -ac +extension GLX" pytest kivy/tests - - cd "$srcdir"/Kivy-$pkgver-py2 - python2 setup.py build_ext --inplace - xvfb-run -s "-screen 0 1280x720x24 -ac +extension GLX" pytest2 kivy/tests } -package_python-kivy() { - depends=('python-docutils' 'gstreamer' 'sdl2_ttf' 'sdl2_mixer' 'sdl2_image') - +package() { 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-docutils' '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 -}