blob: 002b9b2bfc600e0bf83cc64db9124bd2e33f5575 (
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
# Maintainer: Erich Eckner <arch at eckner dot net>
pkgbase=python-wxmplot
pkgname=(python2-wxmplot python-wxmplot)
_pkgname="${pkgbase#*-}"
pkgver=0.9.37
pkgrel=1
pkgdesc='A library for plotting in wxPython using matplotlib'
arch=('any')
url='https://pypi.python.org/pypi/wxmplot/0.9.18'
license=('OSI Approved :: MIT License')
_deppy2=(
'python2>=2.7'
'python2<2.8'
'python2-wxpython3'
)
_deppy=(
'python>=3.7'
'python<3.8'
'python-wxpython'
)
_depends=(
'python')
_makedepends=(
'python-setuptools')
makedepends=(
"${_deppy[@]}"
"${_deppy2[@]}"
"${_depends[@]}"
"${_depends[@]/python/python2}"
"${_makedepends[@]}"
"${_makedepends[@]/ython/ython2}"
)
source=(
"https://pypi.python.org/packages/80/8a/51676250fa18b59264010fbbec5057b73ada6cfde6fae3cd0a69e8921ab1/${_pkgname}-${pkgver}.tar.gz"
)
sha512sums=('cf38e5a122314021868a79cf48adb34ed6ddb14c419c7c8ca8aa841c0ed90d971c05666b2906554b53d6f3bdb67af1357ba008ecb116022b88f7a0dc3e47c717')
prepare() {
cp -a ${_pkgname}-${pkgver}{,-py2}
}
build() {
echo "Building python..."
(
cd ${_pkgname}-${pkgver}
python setup.py build
)
echo "Building python2..."
(
cd ${_pkgname}-${pkgver}-py2
python2 setup.py build
)
}
package_python2-wxmplot() {
depends=(
"${_deppy2[@]}"
"${_depends[@]/python/python2}"
)
cd ${_pkgname}-${pkgver}-py2
python2 setup.py install --skip-build --root="${pkgdir}" --prefix=/usr
find "${pkgdir}" -type f -exec sed -si '1 s#[/ ]python\s*$# python2#' {} +
}
package_python-wxmplot() {
depends=(
"${_deppy[@]}"
"${_depends[@]}"
)
cd ${_pkgname}-${pkgver}
python setup.py install --skip-build --root="${pkgdir}" --prefix=/usr
}
|