2024-11-04 11:50:16 +08:00
|
|
|
# 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-setuptools-scm
|
2024-11-04 11:59:18 +08:00
|
|
|
pkgver=8.1.0
|
2024-11-04 11:50:16 +08:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="Handles managing your python package versions in scm metadata"
|
|
|
|
arch=('x86_64')
|
|
|
|
url="https://github.com/pypa/setuptools_scm"
|
|
|
|
license=('MIT')
|
2024-11-04 11:59:18 +08:00
|
|
|
depends=('python-packaging' 'python-setuptools')
|
|
|
|
makedepends=('python-build' 'python-installer' 'python-wheel')
|
|
|
|
source=(https://github.com/pypa/setuptools_scm/archive/v${pkgver}/${pkgname#*-}-${pkgver}.tar.gz)
|
|
|
|
sha256sums=(4407d237183e668574bc893fdf739f8f4cde5f61950b99ead4f370f13224ea2b)
|
2024-11-04 11:50:16 +08:00
|
|
|
|
|
|
|
build() {
|
2024-11-04 11:59:18 +08:00
|
|
|
cd ${pkgname#*-}-${pkgver}
|
2024-11-04 11:50:16 +08:00
|
|
|
|
|
|
|
python3 -m build --wheel --skip-dependency-check --no-isolation
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2024-11-04 11:59:18 +08:00
|
|
|
cd ${pkgname#*-}-${pkgver}
|
2024-11-04 11:50:16 +08:00
|
|
|
|
|
|
|
python3 -m installer --destdir=${pkgdir} dist/*.whl
|
|
|
|
}
|