blob: f9836e3ecfdb3e8de0876124cda9c8dfd06637dc (
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.5
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=("1752edbfab70f9d707c5cee5294133c5bef1f2c5342dd9797e5cec29a1c53776")
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"
}
|