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

Felix Yan felixonmars at archlinux.org
Mon Nov 9 15:57:28 UTC 2020


    Date: Monday, November 9, 2020 @ 15:57:27
  Author: felixonmars
Revision: 747264

archrelease: copy trunk to community-staging-any

Added:
  python-mss/repos/community-staging-any/
  python-mss/repos/community-staging-any/PKGBUILD
    (from rev 747262, python-mss/trunk/PKGBUILD)

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

Copied: python-mss/repos/community-staging-any/PKGBUILD (from rev 747262, python-mss/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-09 15:57:27 UTC (rev 747264)
@@ -0,0 +1,32 @@
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+
+_pkg=mss
+pkgname=python-${_pkg}
+pkgver=6.0.0
+pkgrel=2
+pkgdesc="Ultra fast cross-platform multiple screenshots module"
+arch=(any)
+url="https://github.com/BoboTiG/python-mss"
+license=(MIT)
+depends=(python)
+makedepends=(python-setuptools)
+checkdepends=(python-pytest xorg-server-xvfb libxrandr lsof python-flaky python-wheel)
+source=(https://files.pythonhosted.org/packages/source/${_pkg::1}/${_pkg}/${_pkg}-${pkgver}.tar.gz)
+#source=(${url}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
+sha256sums=('b42bcc170a138c1afbe05f532374d97486f52c2c69328ae1591dafa64ab92c36')
+
+build() {
+  cd ${_pkg}-${pkgver}
+  python setup.py build
+}
+
+check() {
+  cd ${_pkg}-${pkgver}
+  PYTHONPATH="${PWD}/build/lib/" xvfb-run -a -s "+extension RANDR +render -screen 0 1024x768x24" pytest
+}
+
+package() {
+  cd ${_pkg}-${pkgver}
+  python setup.py install --prefix=/usr --root="${pkgdir}" --skip-build --optimize=1
+  install -Dm644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}
+}



More information about the arch-commits mailing list