blob: b63249fd578a3b3ce3c14bb429a1bb06be18e3d7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py-pexpect
_pkgname=${pkgname#py-}
pkgver=4.2
pkgrel=1
pkgdesc="Make Python a better tool for controlling and automating other programs"
url="http://pexpect.readthedocs.org/en/stable"
arch="noarch"
license="MIT"
depends=""
makedepends="python2-dev python3-dev py-setuptools"
subpackages="$pkgname-doc py3-$_pkgname:_py3 py2-$_pkgname:_py2"
source="$pkgname-$pkgver.tar.gz::https://github.com/pexpect/$_pkgname/archive/$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
build() {
cd "$builddir"
python2 setup.py build || return 1
python3 setup.py build || return 1
}
package() {
cd "$builddir"
mkdir -p "$pkgdir"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
_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
depends="py-ptyprocess"
replaces="$pkgname"
}
_py3() {
_py python3
depends="py3-ptyprocess"
}
md5sums="edd8fa352da64a02fd8aade4994cc8c6 py-pexpect-4.2.tar.gz"
sha256sums="866369f3fb8b539820ba198db07c0a18fecb01d7380c01086c12928ed76ef94e py-pexpect-4.2.tar.gz"
sha512sums="df7155d4f57cfcb17514268fa7d6c010a99b1d9dec46a7bc51bb80446cbbe30187be6bf2a57ec192394b0ce61b6beb40510fd148ffdb7e12c37230536d7b4540 py-pexpect-4.2.tar.gz"
|