pkgname=installer pkgver=0.7.0 pkgdesc='Low-level library for installing a Python package from a wheel distribution' arch=(any) homepage='https://github.com/pypa/build' license=(MIT) sources=("${pkgname}-${pkgver}.tar.gz") urls=("https://files.pythonhosted.org/packages/source/${pkgname:0:1}/${pkgname}/${sources[0]}") md5sums=("d961d1105c9270049528b1167ed021bc") export PYTHONDONTWRITEBYTECODE=1 src_prepare() { tar -xf ${distdir}/${sources[0]} --strip-components=1 } src_build() { pip3 wheel -w dist --no-cache-dir --no-build-isolation --no-deps $PWD } src_install() { pip3 install --no-deps --no-warn-script-location --no-index --no-cache-dir --no-user --root ${pkgdir} --root-user-action=ignore --find-links dist ${pkgname} }