diff options
author | Chau Duong | 2023-10-05 10:26:03 +0700 |
---|---|---|
committer | Chau Duong | 2023-10-05 10:26:03 +0700 |
commit | 21530a745ea536f434658e55e88d1bda44226f5e (patch) | |
tree | 0055656c0606de6a08715397ffa9d2b9d3a10475 /PKGBUILD | |
parent | e717386c510b0af329be9011efffed2bdf14bea1 (diff) | |
download | aur-mdformat-admon-git.tar.gz |
Fix pkgver
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -1,7 +1,7 @@ # Maintainer: Chau Duong <duongdominhchau@gmail.com> _pkgname=mdformat-admon pkgname="${_pkgname}-git" -pkgver=1.0.2 +pkgver=v1.0.2.r1.282ca53 pkgrel=1 pkgdesc="An mdformat plugin for admonitions." arch=(any) @@ -15,9 +15,16 @@ makedepends=( python-flit python-installer ) -source=("${_pkgname}::git+https://github.com/KyleKing/mdformat-admon.git") +source=("${_pkgname}::git+${url}.git") +conflicts=("$_pkgname") +provides=("$_pkgname") sha256sums=(SKIP) +pkgver() { + cd "$_pkgname" + printf "%s" "$(git describe --long --tags | sed 's/\([^-]*-\)g/r\1/;s/-/./g')" +} + build() { cd "$_pkgname" python -m build --wheel --no-isolation |