blob: b00ab3d6260d46c83727f209f814a38687f28171 (
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
|
_name=fluent.runtime
pkgname=python-fluent.runtime
epoch=2
pkgver=0.4.0
pkgrel=1
pkgdesc="Localization library for expressive translations."
arch=(any)
url="https://github.com/projectfluent/python-fluent"
license=(Apache-2.0)
depends=('python-fluent.syntax' 'python-attrs' 'python-babel' 'python-pytz' 'python-typing_extensions')
makedepends=('python-setuptools' 'python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/fluent.runtime-0.4.0.tar.gz")
sha256sums=('cb5ef96a58a3f67acaaca046d1201d202a1ebf2823e5e664370f359bae20574d')
build() {
cd "$srcdir/fluent.runtime-0.4.0"
python setup.py build
}
package() {
cd "$srcdir/fluent.runtime-0.4.0"
python setup.py install --root=$pkgdir --optimize=1 --skip-build
# make sure we don't install any world-writable or root-readable-only files
# we shouldn't need to fix ownership as we extract tarballs as a non-root user
# https://github.com/pypa/setuptools/issues/1328
# https://github.com/LonamiWebs/Telethon/issues/1605
chmod u=rwX,go=rX -R "$pkgdir"
# make sure we don't install annoying files
local _site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
rm -rf "$pkgdir/$_site_packages/tests/"
}
|