blob: 36251fc3817157592a6c394a300043908807688b (
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
|
# Maintainer: Anton Karmanov <a.karmanov@inventati.org>
pkgname='python-language-data'
_proj_name='language_data'
pkgver=1.3.0
pkgrel=3
pkgdesc='Languages supplementary data for python-langcodes'
arch=(any)
url='https://github.com/georgkrause/language_data'
license=('MIT')
depends=(
'python'
'python-langcodes'
'python-marisa-trie'
)
makedepends=(
'python-build'
'python-installer'
'python-setuptools'
'python-setuptools-scm'
'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/"
}
|