aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-pexpect/APKBUILD
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2015-11-30 13:37:03 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2015-11-30 13:37:03 +0000
commit9a48ae74380c6c000ccb078daedbb15d577971f8 (patch)
treee1b3d4a0bb046bb59db1074bc0966cf676676605 /testing/py-pexpect/APKBUILD
parent583ec203de903d6855bf7ea06033b72fc8a966fc (diff)
downloadaports-9a48ae74380c6c000ccb078daedbb15d577971f8.tar.bz2
aports-9a48ae74380c6c000ccb078daedbb15d577971f8.tar.xz
testing/py-pexpect: new aport
Diffstat (limited to 'testing/py-pexpect/APKBUILD')
-rw-r--r--testing/py-pexpect/APKBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/testing/py-pexpect/APKBUILD b/testing/py-pexpect/APKBUILD
new file mode 100644
index 0000000000..88c8553c1b
--- /dev/null
+++ b/testing/py-pexpect/APKBUILD
@@ -0,0 +1,41 @@
+# Contributor: Francesco Colista <fcolista@alpinelinux.org>
+# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
+pkgname=py-pexpect
+_pkgname=pexpect
+pkgver=4.0.1
+pkgrel=0
+pkgdesc="Make Python a better tool for controlling and automating other programs"
+url="http://pexpect.readthedocs.org/en/stable"
+arch="noarch"
+license="MIT"
+depends="python"
+depends_dev=""
+makedepends="$depends_dev python-dev"
+install=""
+subpackages="$pkgname-doc"
+source="http://pypi.python.org/packages/source/p/$_pkgname/$_pkgname-$pkgver.tar.gz"
+
+_builddir="$srcdir"/$_pkgname-$pkgver
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ python setup.py build || return 1
+}
+
+package() {
+ cd "$_builddir"
+ python setup.py install --prefix=/usr --root="$pkgdir" || return 1
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+md5sums="056df81e6ca7081f1015b4b147b977b7 pexpect-4.0.1.tar.gz"
+sha256sums="232795ebcaaf2e120396dbbaa3a129eda51757eeaae1911558f4ef8ee414fc6c pexpect-4.0.1.tar.gz"
+sha512sums="c2476f977964379faa3ecef1bc4800f3a87bd6cdd9e2d52e4e4f33a4060a97bb54f0770dfb5804d5a863eaf6ddef6b11be1d24f1617cc4837015202868ca7e87 pexpect-4.0.1.tar.gz"