# Maintainer: Marco Rubin # Contributor: Florian Bruhin # Contributor: Roman G pkgname=torrentinfo pkgver=1.8.7 pkgrel=3 pkgdesc="Bittorrent .torrent file parser and summariser" arch=('any') url="https://github.com/Fuuzetsu/torrentinfo" license=(GPL2) depends=(python) makedepends=(git python-build python-installer python-setuptools python-wheel) source=("git+$url#commit=3c9b3ba80c867ba28e8ce0982fec8ea5369df8ef") b2sums=('SKIP') prepare() { cd $pkgname sed -i "s/os.name is/os.name ==/g" setup.py # fix warning } build() { cd $pkgname python -m build --wheel --no-isolation } package() { cd $pkgname python -m installer --destdir="$pkgdir" dist/*.whl }