# Maintainer: Will Handley (aur.archlinux.org/account/wjhandley) pkgname=python-camb _name=${pkgname#python-} pkgver=1.3.2 pkgrel=3 pkgdesc="Code for Anisotropies in the Microwave Background" arch=(any) url="https://github.com/cmbant/CAMB" license=('custom') groups=() makedepends=(python-build python-installer) provides=() conflicts=() replaces=() backup=() options=(!emptydirs) install= source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz") sha256sums=(ae1604e72b10515505ff675a139e1bc1d34b48733974e5feb0c1ce4fbb8b1b00) build() { cd "$srcdir/$_name-$pkgver" python -m build --wheel --no-isolation } package() { cd "$srcdir/$_name-$pkgver" install -D -m644 $srcdir/../LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" python -m installer --destdir="$pkgdir" dist/*.whl }