PKGBUILD 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # Maintainer: Pekka Ristola <pekkarr [at] protonmail [dot] com>
  2. _name=pykakasi
  3. pkgname=python-$_name
  4. pkgver=2.2.1
  5. pkgrel=1
  6. pkgdesc="Lightweight converter from Japanese Kana-kanji sentences into Kana-Roman"
  7. arch=(any)
  8. url="https://codeberg.org/miurahr/pykakasi"
  9. license=(GPL3)
  10. depends=(
  11. python-deprecated
  12. python-jaconv
  13. python-setuptools
  14. )
  15. makedepends=(
  16. python-build
  17. python-installer
  18. python-klepto
  19. python-setuptools-scm
  20. python-sphinx
  21. python-wheel
  22. )
  23. source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
  24. sha256sums=('3a3510929a5596cae51fffa9cf78c0f742d96cebd93f726c96acee51407d18cc')
  25. build() {
  26. cd "$_name-$pkgver"
  27. python -m build --wheel --no-isolation
  28. make -C docs text
  29. }
  30. package() {
  31. cd "$_name-$pkgver"
  32. python -m installer --destdir="$pkgdir" dist/*.whl
  33. # rename script in /usr/bin to pykakasi in order to avoid conflicts with the kakasi package
  34. mv "$pkgdir"/usr/bin/{,py}kakasi
  35. install -Dm644 -t "$pkgdir/usr/share/doc/$pkgname" docs/_build/text/*
  36. }