diff options
Diffstat (limited to 'community/py3-ptyprocess')
-rw-r--r-- | community/py3-ptyprocess/APKBUILD | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/community/py3-ptyprocess/APKBUILD b/community/py3-ptyprocess/APKBUILD new file mode 100644 index 0000000000..6158efb2c8 --- /dev/null +++ b/community/py3-ptyprocess/APKBUILD @@ -0,0 +1,45 @@ +# Contributor: Jakub Jirutka <jakub@jirutka.cz> +# Maintainer: Francesco Colista <fcolista@alpinelinux.org> +pkgname=py-ptyprocess +_pkgname=${pkgname#py-} +pkgver=0.6.0 +pkgrel=1 +pkgdesc="Run a subprocess in a pseudo terminal" +url="https://github.com/pexpect/ptyprocess" +arch="noarch" +license="ISC" +depends="" +makedepends="python2-dev python3-dev py-setuptools" +subpackages="py3-$_pkgname:_py3 py2-$_pkgname:_py2" +source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" +builddir="$srcdir/$_pkgname-$pkgver" + +build() { + cd "$builddir" + python2 setup.py build || return 1 + python3 setup.py build || return 1 +} + +package() { + mkdir -p "$pkgdir" +} + + +_py() { + local python=$1 + pkgdesc="$pkgdesc - $python" + install_if="$pkgname=$pkgver-r$pkgrel $python" + cd "$builddir" + $python setup.py install --prefix=/usr --root="$subpkgdir" +} + +_py2() { + _py python2 + replaces="$pkgname" +} + +_py3() { + _py python3 +} + +sha512sums="b34b6bca977f09d1443b210e338e1300e12d6ef35857f9543b3a116ef3b500ad4844357a7a283321756f886af41bddb1f02b27bf200ef1e82a96fd9e431bed86 ptyprocess-0.6.0.tar.gz" |