X-Original-To: alpine-aports@lists.alpinelinux.org Received: from mx1.riseup.net (mx1.riseup.net [198.252.153.129]) by lists.alpinelinux.org (Postfix) with ESMTP id 6E3135C50FD for ; Thu, 13 Apr 2017 09:29:48 +0000 (GMT) Received: from cotinga.riseup.net (unknown [10.0.1.164]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.riseup.net (Postfix) with ESMTPS id 496CC1A147C for ; Thu, 13 Apr 2017 09:29:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1492075787; bh=aUKjnyfWBeFS65WGnJco9LuGUc8pphzX3mh2aJhzRIE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=brq/1D5+n5wcvSrDnDRDv+jBDzFcaeyC9Lul2kPQPNcu2t7M5d8pSvdx/HyuIi/Dk HI3f4fuzNmiJKUXXfxySc00zsrBfobQ6wuO5pCBofmyUhx33jcUwntyZRH3xt+E3yd WWd8w+b792rdWiAALQV09dvmjghnfRWJo6dnsXdA= Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: pickfire) with ESMTPSA id 6EF2844DDE From: Ivan Tham To: alpine-aports@lists.alpinelinux.org Subject: [alpine-aports] [PATCH 2/2] testing/py-pyautogui: new aport Date: Thu, 13 Apr 2017 17:29:28 +0800 Message-Id: <20170413092928.14247-2-pickfire@riseup.net> In-Reply-To: <20170413092928.14247-1-pickfire@riseup.net> References: <20170413092928.14247-1-pickfire@riseup.net> X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: http://pyautogui.readthedocs.io/ A cross-platform Python module for GUI automation for human beings --- testing/py-pyautogui/APKBUILD | 54 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 testing/py-pyautogui/APKBUILD diff --git a/testing/py-pyautogui/APKBUILD b/testing/py-pyautogui/APKBUILD new file mode 100644 index 0000000000..75a388cc7c --- /dev/null +++ b/testing/py-pyautogui/APKBUILD @@ -0,0 +1,54 @@ +# Contributor: William Pitcock +# Maintainer: William Pitcock +pkgname=py-pyautogui +_pkgname=PyAutoGUI +pkgver=0.9.35 +pkgrel=0 +pkgdesc="A cross-platform Python module for GUI automation for human beings" +url="http://pyautogui.readthedocs.io/" +arch="noarch" +license="BSD" +depends="py-xlib py-pillow" +makedepends="python2-dev python3-dev py-setuptools" +subpackages="py3-$_pkgname:_py3 py2-$_pkgname:_py2" +source="https://github.com/asweigart/pyautogui/archive/master.zip" # TODO: find a better source +builddir="$srcdir/pyautogui-master" + +build() { + cd "$builddir" + 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="7369e846f9a2d8f6af4752e424ed867f857fb7a98f946311d45003fda93b69ec73b3866e16a001479b9dbd19ec1634959ac083e8199cda9fb60a650260dcde6d master.zip" -- 2.12.2 --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---