summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 94e35a4667ad9d61716c39ea2600a712ba199349 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Maintainer: Ash Price <eisleggje@gmail.com>
pkgname=python-spacy-nb_core_news_lg
pkgver=3.8.0
pkgrel=1
pkgdesc='Norwegian (bokmål) pretrained model for spaCy (large)'
arch=(any)
url='https://spacy.io/models/da#section-nb_core_news_lg'
license=(CCPL)
depends=()
makedepends=(python-setuptools)
source=("https://github.com/explosion/spacy-models/releases/download/nb_core_news_lg-${pkgver}/nb_core_news_lg-${pkgver}.tar.gz")
b2sums=('a407ec8be05005eb119f344167155694ee1d0b9ba39b003f79eae0004cc62986b219fda79653a1056f5211f7191e5e3efa73f130d1aa2241950a6f70d0f5018b')

build() {
  cd nb_core_news_lg-${pkgver}
  python setup.py build
}

package() {
  cd nb_core_news_lg-${pkgver}
  python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}