From 948e17cd1489ccd72843274ecf7a3380d981809e Mon Sep 17 00:00:00 2001 From: xhaa123 Date: Mon, 4 Nov 2024 14:56:33 +0800 Subject: [PATCH] python-hatch-vcs 0.4.0-1 --- PKGBUILD | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 PKGBUILD diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..ceb113a --- /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-hatch-vcs +pkgver=0.4.0 +pkgrel=1 +pkgdesc="Hatch plugin for versioning with your preferred VCS" +arch=('x86_64') +url="https://github.com/ofek/hatch-vcs" +license=('MIT') +depends=('python-hatchling' 'python-setuptools-scm') +makedepends=('python-build' 'python-installer') +source=(https://github.com/ofek/hatch-vcs/archive/v${pkgver}/${pkgname#*-}-${pkgver}.tar.gz) +sha256sums=(08d52088c3cc97a719e2530f42a05829cf442c63ea735e63e4d152e75966c4f1) + +build() { + cd ${pkgname#*-}-${pkgver} + + python3 -m build --wheel --no-isolation +} + +package() { + cd ${pkgname#*-}-${pkgver} + + python3 -m installer --destdir=${pkgdir} dist/*.whl +}