summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5f45c08c68ffa0b39a3d38c1aeb29c23815766f1 (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
37
38
# Maintainer: J. Nathanael Philipp (jnphilipp) <nathanael@philipp.land>

_pkgname=spacy-alignments
pkgname=python-${_pkgname}
pkgver=0.8.5
pkgrel=1
pkgdesc="A spaCy package for the Rust tokenizations library"
arch=(x86_64 aarch64)
url="https://github.com/explosion/spacy-alignments"
license=(MIT)
depends=(python-hypothesis)
makedepends=(
    python-pip
    python-wheel
    python-setuptools
    python-setuptools-rust
)
source=(
    "https://raw.githubusercontent.com/explosion/spacy-alignments/master/LICENSE"
    "https://github.com/explosion/${_pkgname}/archive/refs/tags/v${pkgver}.zip"
)
b2sums=(
    "2aa37d0c1171ddc760676a38def395e1968478908ea56edf4f014df68e096465cc86fa333e47f914828c662bd9a62a9e0d2d99f7b78fdeddbde19f00a4bffef3"
    "31acc23166cf0a805171379518fd1bc35cc8a2064599a59e64117326767f6488583f4d0d3b4aabdfa287bfcc7d752c1e3e3a619f3988bdc128e7a3f45e0080d4"
)

build() {
    cd "${_pkgname}-${pkgver}"
    #python setup.py build
    python -m build --wheel --no-isolation
}

package() {
    cd "${_pkgname}-${pkgver}"
    #python setup.py install --skip-build --prefix=/usr --root="${pkgdir}" --optimize=1
    python -m installer --destdir="$pkgdir" dist/*.whl
    install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}