# Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>

pkgname=python-faust-cchardet
pkgver=2.1.19
pkgrel=1
pkgdesc="Fork of the original cChardet"
url="https://pypi.org/project/faust-cchardet/"
arch=(x86_64 aarch64)
license=(
  GPL
  LGPL
  MPL
)
depends=(
  python
)
makedepends=(
  cython
  python-build
  python-installer
  python-pkgconfig
  python-setuptools
  python-wheel
)
provides=("python-cchardet=$pkgver")
conflicts=(python-cchardet)
source=(
  https://files.pythonhosted.org/packages/source/f/faust-cchardet/faust-cchardet-$pkgver.tar.gz
)
sha256sums=('f89386297cde0c8e0f5e21464bc2d6d0e4a4fc1b1d77cdb238ca24d740d872e0')

prepare() {
  cd faust-cchardet-$pkgver
}

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

package() {
  cd faust-cchardet-$pkgver
  python -m installer --destdir="$pkgdir" dist/*.whl
}

# vim:set sw=2 sts=-1 et:
