# Maintainer: Hu Butui <hot123tea123@gmail.com>
# Contributor: tinywrkb <tinywrkb@gmail.com>
# Contributor: Johannes Titz <johannes.titz@gmail.com>
# Contributor: Doron Behar <doron.behar@gmail.com>

_pkgname=python-bidi
pkgname=python-bidi
pkgver=0.6.11
pkgrel=1
pkgdesc='BIDI algorithm related functions'
url='https://github.com/MeirKriheli/python-bidi'
license=(GPL-3.0-or-later)
arch=(x86_64)
depends=(
  python
)
makedepends=(
  python-build
  python-installer
  python-maturin
  python-setuptools
  python-wheel
)

source=("${_pkgname}-${pkgver}.tar.gz::https://github.com/MeirKriheli/python-bidi/archive/refs/tags/v${pkgver}.tar.gz")
sha512sums=('be89828ed3a5286d81fc2055df22d6139dc294e6b8bde38b8f805a5e0fb9666238fc6c788d742639e5840f640e4599ace43c6330534f3f4651cd643dd558cb1b')

build() {
  cd ${_pkgname}-${pkgver}
  python -m build --wheel --no-isolation
}

package() {
  cd ${_pkgname}-${pkgver}
  python -m installer --destdir="${pkgdir}" dist/*.whl
}
# vim:set ts=2 sw=2 et:
