blob: 52dad4c880b8c3dbc2f1179eef6ec22198aa3e3f (
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
|
# Maintainer: Anton Karmanov <a.karmanov@inventati.org>
pkgname='python-language-data'
_proj_name='language_data'
pkgver=1.3.0
pkgrel=1
pkgdesc='Languages supplementary data for python-langcodes'
arch=(any)
url='https://github.com/rspeer/language_data'
license=('MIT')
depends=(
'python'
'python-langcodes'
'python-marisa-trie'
)
makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel')
source=("https://files.pythonhosted.org/packages/source/${_proj_name::1}/$_proj_name/$_proj_name-$pkgver.tar.gz")
sha256sums=('7600ef8aa39555145d06c89f0c324bf7dab834ea0b0a439d8243762e3ebad7ec')
_tardir="language_data-${pkgver}"
build() {
cd "${srcdir}/${_tardir}"
python -m build --wheel --no-isolation
}
package() {
cd "${srcdir}/${_tardir}"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dvm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
}
|