blob: 6a084f6d09c31b33e0dc5489151872447bb7de08 (
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
|
# Maintainer (Arch): Carl George < arch at cgtx dot us >
# Contributor (Arch): Troy C < rstrox -ta yahoo -tod com >
# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
_name="oslo.i18n"
_module="${_name/./-}"
pkgname=("python-${_module}" "python2-${_module}")
pkgver="2.3.0"
pkgrel="1"
pkgdesc="Oslo i18n library"
arch=("any")
url="https://github.com/openstack/${_name}"
license=("Apache")
makedepends=("python-pbr>=1.3" "python2-pbr>=1.3" "git")
source=("https://pypi.python.org/packages/source/${_name:0:1}/${_name}/${_name}-${pkgver}.tar.gz")
sha256sums=('9cd35cd12104672e4675465d59badf9b1d1c1bfc54ceef57d076d4fa8a12afc6')
prepare() {
cd "${srcdir}/${_name}-${pkgver}"
sed -ri '/pbr/d' requirements.txt
}
package_python-oslo-i18n() {
depends=("python-babel>=1.3" "python-six>=1.9.0")
cd "${srcdir}/${_name}-${pkgver}"
python setup.py install --root="${pkgdir}" --optimize=1
}
package_python2-oslo-i18n() {
depends=("python2-babel>=1.3" "python2-six>=1.9.0")
cd "${srcdir}/${_name}-${pkgver}"
python2 setup.py install --root="${pkgdir}" --optimize=1
}
|