aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-pyautogui
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-08-30 05:04:52 -0300
committerLeo <thinkabit.ukim@gmail.com>2019-08-30 05:55:42 -0300
commit326fec7454b4584386b6ed1cc55e5fa09bdac95d (patch)
treefd4e5cc16e5385dc8540b5ff6f16e61662355002 /testing/py3-pyautogui
parent7ab3d41ab54852260a6e7bab00e048d0d92cbc7a (diff)
downloadaports-326fec7454b4584386b6ed1cc55e5fa09bdac95d.tar.bz2
aports-326fec7454b4584386b6ed1cc55e5fa09bdac95d.tar.xz
testing/py3-pyautogui: rename from py-pyautogui
Diffstat (limited to 'testing/py3-pyautogui')
-rw-r--r--testing/py3-pyautogui/APKBUILD58
1 files changed, 58 insertions, 0 deletions
diff --git a/testing/py3-pyautogui/APKBUILD b/testing/py3-pyautogui/APKBUILD
new file mode 100644
index 0000000000..6d6a13aa29
--- /dev/null
+++ b/testing/py3-pyautogui/APKBUILD
@@ -0,0 +1,58 @@
+# Contributor: Ivan Tham <pickfire@riseup.net>
+# Maintainer: Ivan Tham <pickfire@riseup.net>
+pkgname=py-pyautogui
+_pkgname=PyAutoGUI
+# upstream does not tag releases https://github.com/asweigart/pyautogui/issues/270
+_commit=61f14d7632f80267232098edd71be98a30c1339b
+pkgver=0.9.37
+pkgrel=1
+pkgdesc="A cross-platform Python module for GUI automation for human beings"
+url="https://pyautogui.readthedocs.io/"
+arch="noarch"
+license="BSD"
+depends="py-xlib py-pillow"
+makedepends="python2-dev python3-dev py-setuptools xvfb"
+subpackages="py3-$_pkgname:_py3 py2-$_pkgname:_py2"
+source="$_pkgname-$_commit.tar.gz::https://github.com/asweigart/pyautogui/archive/$_commit.tar.gz"
+builddir="$srcdir/pyautogui-$_commit"
+
+build() {
+ cd "$builddir"
+ Xvfb :1 &
+ export DISPLAY=:1
+ python2 setup.py build
+ python3 setup.py build
+}
+
+check() {
+ cd "$builddir"
+ python2 setup.py check
+ python3 setup.py check
+}
+
+package() {
+ mkdir -p "$pkgdir"
+}
+
+_py2() {
+ replaces="$pkgname"
+ depends="${depends//py-/py2-}"
+ _py python2
+}
+
+_py3() {
+ depends="${depends//py-/py3-}"
+ _py python3
+}
+
+_py() {
+ local python="$1"
+ pkgdesc="$pkgdesc (for $python)"
+ depends="$depends $python"
+ install_if="$pkgname=$pkgver-r$pkgrel $python"
+
+ cd "$builddir"
+ $python setup.py install --prefix=/usr --root="$subpkgdir"
+}
+
+sha512sums="b26bee4684f9b2cb5a1ba376faceb879251dcebc7a93ef931a6b273bbebbf1c4151834035f5a52ffad1859d131d1490ad42e6b6c0a77304fd8afb316c96cde1d PyAutoGUI-61f14d7632f80267232098edd71be98a30c1339b.tar.gz"