summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d709b4657ab7fdeb7a3d79ab0dce9db4edd06eab (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: Blair Bonnett <blair dot bonnett at gmail dot com>

pkgname=jupyterlab-language-pack-no-no
pkgdesc='Norwegian Bokmål (Norway) language pack for JupyterLab'
url='https://github.com/jupyterlab/language-packs/'
pkgver=4.1.post2
pkgrel=1
arch=('any')
license=('BSD-3-Clause')

makedepends=('jupyterlab-translate' 'python-build' 'python-hatchling' 'python-installer')

_pypi=jupyterlab_language_pack_no_no
source=(
  "https://files.pythonhosted.org/packages/source/${_pypi::1}/$_pypi/$_pypi-$pkgver.tar.gz"
)
sha256sums=(
  '0c0c0c3c1883228bd7614ee3c3f75ad4b70cc7055c4b4f658f2ac8d5ba1d0678'
)

build() {
  cd "$_pypi-$pkgver"
  python -m build --wheel --no-isolation
}

package() {
  cd "$_pypi-$pkgver"
  python -m installer --destdir="$pkgdir" dist/*.whl
  install -Dm644 LICENSE.txt -t "$pkgdir/usr/share/licenses/$pkgname"
}