[arch-commits] Commit in python-pyscreenshot/repos/community-any (PKGBUILD PKGBUILD)
Bruno Pagani
archange at archlinux.org
Sun Aug 9 12:31:59 UTC 2020
Date: Sunday, August 9, 2020 @ 12:31:58
Author: archange
Revision: 673137
archrelease: copy trunk to community-any
Added:
python-pyscreenshot/repos/community-any/PKGBUILD
(from rev 673136, python-pyscreenshot/trunk/PKGBUILD)
Deleted:
python-pyscreenshot/repos/community-any/PKGBUILD
----------+
PKGBUILD | 83 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 41 insertions(+), 42 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2020-08-09 12:31:32 UTC (rev 673136)
+++ PKGBUILD 2020-08-09 12:31:58 UTC (rev 673137)
@@ -1,42 +0,0 @@
-# Maintainer: Bruno Pagani <archange at archlinux.org>
-
-_pkg=pyscreenshot
-pkgname=python-${_pkg}
-pkgver=1.0
-pkgrel=1
-pkgdesc="Copy the contents of the screen to a PIL or Pillow image memory"
-arch=(any)
-url="https://github.com/ponty/pyscreenshot"
-license=(BSD)
-depends=(python-easyprocess python-entrypoint2)
-makedepends=(python-setuptools)
-checkdepends=(
- python-nose python-pyvirtualdisplay python-pillow python-pygame
- python-path.py python-xlib
- python-gobject python-pyqt5 python-qtpy pyside2
- xorg-server-xvfb xorg-xdpyinfo gnome-screenshot scrot imagemagick
-)
-#PyPi tarball does not have tests
-#source=(https://files.pythonhosted.org/packages/source/${_pkg::1}/${_pkg}/${_pkg}-${pkgver}.tar.gz)
-source=(${url}/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz)
-sha256sums=('b1ccae937486cb304d5b3039e2b48d728df7ba67642b1a522b598e622936cfad')
-
-build() {
- cd ${_pkg}-${pkgver}
- python setup.py build
-}
-
-check() {
- cd ${_pkg}-${pkgver}/tests/
- export PYTHONPATH="../build/lib/"
- python -m pyscreenshot.check.versions
- python -m pyscreenshot.check.speedtest --virtual-display
- xvfb-run -s "-br -screen 0 400x500x24" \
- nosetests -vv test_scrot.py test_imagemagick.py test_def.py test_pygdk3.py test_pyqt5.py test_qtpy.py test_pyside2.py easy
-}
-
-package() {
- cd ${_pkg}-${pkgver}
- python setup.py install --prefix=/usr --root="${pkgdir}" --skip-build --optimize=1
- install -Dm644 LICENSE.txt -t "${pkgdir}"/usr/share/licenses/${pkgname}
-}
Copied: python-pyscreenshot/repos/community-any/PKGBUILD (from rev 673136, python-pyscreenshot/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-08-09 12:31:58 UTC (rev 673137)
@@ -0,0 +1,41 @@
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+
+_pkg=pyscreenshot
+pkgname=python-${_pkg}
+pkgver=2.2
+pkgrel=1
+pkgdesc="Copy the contents of the screen to a PIL or Pillow image memory"
+arch=(any)
+url="https://github.com/ponty/pyscreenshot"
+license=(BSD)
+depends=(python-easyprocess python-entrypoint2 python-mss python-jeepney)
+makedepends=(python-setuptools)
+checkdepends=(
+ python-pytest python-pyvirtualdisplay python-pillow python-path.py
+ python-xlib python-gobject python-pyqt5 python-qtpy python-wxpython
+ pyside2 xorg-server-xvfb xorg-xdpyinfo gnome-screenshot scrot imagemagick
+ maim pqiv
+)
+source=(https://files.pythonhosted.org/packages/source/${_pkg::1}/${_pkg}/${_pkg}-${pkgver}.tar.gz)
+#source=(${url}/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz)
+sha256sums=('dec8517cb18faf4f983dd2ee6636924e472a5644da1480ae871786dfcac244e9')
+
+build() {
+ cd ${_pkg}-${pkgver}
+ python setup.py build
+}
+
+check() {
+ cd ${_pkg}-${pkgver}
+ export PYTHONPATH="${PWD}/build/lib/"
+ python -m pyscreenshot.check.versions
+ python -m pyscreenshot.check.speedtest --virtual-display
+ xvfb-run -n 101 -s "+extension RANDR -br -screen 0 900x800x24" python -m pytest -v
+ xvfb-run -n 102 -s "-extension RANDR -br -screen 0 900x800x24" python -m pytest -v
+}
+
+package() {
+ cd ${_pkg}-${pkgver}
+ python setup.py install --prefix=/usr --root="${pkgdir}" --skip-build --optimize=1
+ install -Dm644 LICENSE.txt -t "${pkgdir}"/usr/share/licenses/${pkgname}
+}
More information about the arch-commits
mailing list