From 0029008c63c5dc3eb68b3fcb46baa84b017a0d4b Mon Sep 17 00:00:00 2001 From: xhaa123 Date: Sun, 22 Sep 2024 21:11:30 +0800 Subject: [PATCH] python-build 1.2.2-1 --- python-build/PKGBUILD | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 python-build/PKGBUILD diff --git a/python-build/PKGBUILD b/python-build/PKGBUILD new file mode 100644 index 0000000..a1dddee --- /dev/null +++ b/python-build/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: Futura Linux Team +pkgname=python-build +pkgver=1.2.2 +pkgrel=1 +pkgdesc="A simple, correct PEP 517 build frontend" +arch=('x86_64') +url="https://pypi.org/project/build/" +license=('MIT') +depends=('python-packaging' 'python-pyproject-hooks') +makedepends=('python-flit-core' 'python-installer') +source=(https://github.com/pypa/build/archive/${pkgver}/${pkgname#*-}-${pkgver}.tar.gz) +sha256sums=(6708ae4ee3ed0ca2f5efa4943627e5e6b0db4793ff3baba240e313a447007268) + +prepare() { + cd ${pkgname#*-}-${pkgver} + + python3 -m flit_core.wheel +} + +package() { + cd ${pkgname#*-}-${pkgver} + + python3 -m installer -d ${pkgdir} dist/*.whl +}