diff --git a/dev-python/editables-0.5.PKGBUILD b/dev-python/editables-0.5.PKGBUILD new file mode 100644 index 0000000..a5bd9ad --- /dev/null +++ b/dev-python/editables-0.5.PKGBUILD @@ -0,0 +1,23 @@ +pkgname=editables +pkgver=0.5 +pkgdesc='Python library for creating editable wheels' +arch=('any') +homepage='https://github.com/pfmoore/editables' +license=('MIT') +sources=("${pkgname}-${pkgver}.tar.gz") +urls=("https://files.pythonhosted.org/packages/source/e/${pkgname}/${sources[0]}") +md5sums=("520de8c3a9dc5dfb2b365d104541c9de") + +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} +}