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 127595C53A8 for ; Thu, 27 Apr 2017 17:20:08 +0000 (GMT) Received: from piha.riseup.net (unknown [10.0.1.163]) (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 BB7061A1BD7 for ; Thu, 27 Apr 2017 17:20:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1493313607; bh=FKKffj38uTqzRUJb8lrtONbfpR5wL+Le32u3oMoBFTI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=FcSVY1yrTZgeeC3wmSHPyn7C4b1Ql05ihLvixFSt752OptGpn3GomLGxVDGzhmDS/ cgFIdf1Ux6hOKR5il0ckoUaj8mdtT77rVobp/uObmgfmdusqy9PmCBNbB/8H2raLt0 lPgCGQw4McYA2hEXRgFCIkN2+0weodVaf8AVvWLM= Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: pickfire@riseup.net) with ESMTPSA id D47411C85B6 From: Ivan Tham To: alpine-aports@lists.alpinelinux.org Subject: [alpine-aports] [PATCH 2/2] testing/py-pyautogui: new aport Date: Fri, 28 Apr 2017 01:19:56 +0800 Message-Id: <20170427171956.24874-2-pickfire@riseup.net> In-Reply-To: <20170427171956.24874-1-pickfire@riseup.net> References: <20170413092928.14247-1-pickfire@riseup.net> <20170427171956.24874-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..f8b9b131e3 --- /dev/null +++ b/testing/py-pyautogui/APKBUILD @@ -0,0 +1,54 @@ +# Contributor: Ivan Tham +# Maintainer: Ivan Tham +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 ---