blob: 33f8c9b241cbc9f3f31173b2ff6a25ffa467f88a (
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
|
# Maintainer: J. Nathanael Philipp (jnphilipp) <nathanael@philipp.land>
pkgname=python-tcm
_pkg="${pkgname#python-}"
pkgver=0.1.3
pkgrel=1
pkgdesc="Topic Context Model (TCM)."
url="https://github.com/jnphilipp/tcm"
depends=('python-scipy' 'python-scikit-learn' 'python-conllu')
makedepends=('python-setuptools')
license=('GPL-3.0-or-later')
arch=(any)
source=("$_pkg-$pkgver.tar.gz::https://github.com/jnphilipp/tcm/archive/refs/tags/$pkgver.tar.gz")
sha256sums=("fa4ae6bff4c7b8d26c4b10ee612653fd56fc8b5e876831e846bd0e83cbb6f2f4")
build() {
cd $_pkg-$pkgver
python -m build --wheel --no-isolation
}
package() {
cd $_pkg-$pkgver
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|