summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c3585e1fc097183190f3769c7cded2f82166e5d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# PKGBUILD generated by pipman
# Python package author:  <Lee Miller <dleemiller@gmail.com>>
# Maintainer: Magi3r <magier dot mit dot f3erball at gmail dot com>

pkgname=python-wordllama
pkgver=0.3.9
pkgrel=1
pkgdesc="WordLlama NLP Utility"
arch=(any)
url="https://github.com/dleemiller/WordLlama"
license=(MIT License)
makedepends=("python" "python-pip")
depends=("python-tokenizers" "python-safetensors" "python-toml")

build() {
  pip install --no-deps --target="wordllama" wordllama==$pkgver
}
package() {
  sitepackages=$(python -c "import site; print(site.getsitepackages()[0])")
  mkdir -p $pkgdir/"$sitepackages"
  cp -r $srcdir/wordllama/* $pkgdir/"$sitepackages"
}