python-build 1.2.2-1

This commit is contained in:
xhaa123 2024-09-22 21:11:30 +08:00
parent 37029120f7
commit 0029008c63

29
python-build/PKGBUILD Normal file
View File

@ -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 <future_linux@163.com>
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
}