From d392551cf83759fbcd9f333e063f1d6d9560e09a Mon Sep 17 00:00:00 2001 From: Zacharias-Brohn Date: Mon, 29 Jun 2026 18:59:03 +0200 Subject: [PATCH] versioning --- PKGBUILD | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/PKGBUILD b/PKGBUILD index c17167b..09ece90 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,5 +1,5 @@ pkgname='zshell' -pkgver=0.1.0 +pkgver=0.1.0.e685500 pkgrel=1 pkgdesc='The cli for zshell' arch=('any') @@ -11,6 +11,13 @@ makedepends=('python-build' 'python-installer' 'python-hatch' 'python-hatch-vcs' source=("$pkgname::git+$url.git#branch=main") sha256sums=('SKIP') +pkgver() { + cd "${srcdir}/${pkgname}" + printf "%s.%s" \ + "$(git describe --tags --abbrev=0 | sed 's/^v//')" \ + "$(git rev-parse --short HEAD)" +} + build() { cd "${srcdir}/${pkgname}/cli" python -m build --wheel --no-isolation