pkgname=python-pefile pkgver=2024.8.26 pkgrel=1 pkgdesc="Python PE parsing module" arch=('x86_64') url="https://github.com/erocarrera/pefile" license=('MIT') depends=('python') makedepends=('python-setuptools' 'python-build' 'python-installer' 'python-wheel') source=(https://github.com/erocarrera/pefile/releases/download/v${pkgver}/${pkgname#*-}-${pkgver}.tar.gz) sha256sums=(3ff6c5d8b43e8c37bb6e6dd5085658d658a7a0bdcd20b6a07b1fcfc1c4e9d632) build() { cd ${pkgname#*-}-${pkgver} python3 -m build --wheel --no-isolation } package() { cd ${pkgname#*-}-${pkgver} python3 -m installer --destdir=${pkgdir} dist/*.whl }