summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3c8c2ae6d8107d2e8293658b5e864f2472667fb7 (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
# Maintainer: Anton Karmanov <a.karmanov@inventati.org>

pkgname='python-language-data'
_proj_name='language_data'
pkgver=1.1
pkgrel=1
pkgdesc='Languages supplementary data for python-langcodes'
arch=(any)
url='https://github.com/rspeer/language_data'
license=('custom:MIT')  # No LICENSE file in the git repo
depends=(
  'python'
  'python-langcodes'
  'python-setuptools'
  'python-marisa-trie')
makedepends=('python-build' 'python-installer' 'python-wheel')
source=("https://files.pythonhosted.org/packages/source/${_proj_name::1}/$_proj_name/$_proj_name-$pkgver.tar.gz")
sha256sums=('c1f5283c46bba68befa37505857a3f672497aba0c522b37d99367e911232455b')
_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
}