python-editables/PKGBUILD
2024-11-04 12:12:09 +08:00

30 lines
941 B
Bash

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