pkgname=python-fastbencode pkgver=0.3.1 pkgrel=1 pkgdesc="Implementation of bencode with optional fast C extensions" arch=('x86_64') url="https://github.com/breezy-team/fastbencode" license=(GPL-2.0-or-later) depends=('glibc' 'python') makedepends=('python-cython' 'python-build' 'python-installer' 'python-setuptools' 'python-wheel') source=(https://github.com/breezy-team/fastbencode/archive/v${pkgver}/${pkgname#*-}-${pkgver}.tar.gz) sha256sums=(103c93fe84db0c7088de4e2944c70e619d674e8fe55161130aeb1492eec679f9) build() { cd ${pkgname#*-}-${pkgver} python3 -m build --wheel --no-isolation } package() { cd ${pkgname#*-}-${pkgver} python3 -m installer -d ${pkgdir} dist/*.whl }