From 86366b1b69dc1a884649115ece8939476ca0a64d Mon Sep 17 00:00:00 2001 From: xhaa123 Date: Mon, 4 Nov 2024 12:12:09 +0800 Subject: [PATCH] python-editables 0.5-1 --- PKGBUILD | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 PKGBUILD diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..e5d51da --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,29 @@ +# This is an example PKGBUILD file. Use this as a start to creating your own, +# and remove these comments. For more information, see 'man PKGBUILD'. +# NOTE: Please fill out the license field for your package! If it is unknown, +# then please put 'unknown'. + +# Maintainer: Future Linux Team +pkgname=python-editables +pkgver=0.5 +pkgrel=1 +pkgdesc="Python library for creating editable wheels" +arch=('x86_64') +url="https://github.com/pfmoore/editables" +license=('MIT') +depends=('python') +makedepends=('python-build' 'python-installer' 'python-flit-core') +source=(https://files.pythonhosted.org/packages/source/e/editables/${pkgname#*-}-${pkgver}.tar.gz) +sha256sums=(309627d9b5c4adc0e668d8c6fa7bac1ba7c8c5d415c2d27f60f081f8e80d1de2) + +build() { + cd ${pkgname#*-}-${pkgver} + + python3 -m build --wheel --no-isolation +} + +package() { + cd ${pkgname#*-}-${pkgver} + + python3 -m installer --destdir="$pkgdir" dist/*.whl +}