diff options
author | hoream | 2024-02-20 17:00:53 +0800 |
---|---|---|
committer | hoream | 2024-02-20 17:00:53 +0800 |
commit | 9a5e26e0379c5ff29c9fac38d4b59aee6b4055f6 (patch) | |
tree | f85c0e5cb61f9f22150d4d6eccbcf465e474bf84 | |
parent | 1c6558dd78bb7bf0397c280e89ab650002fe27a3 (diff) | |
download | aur-totalmapper-git.tar.gz |
add pkgver() function
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 14 |
2 files changed, 9 insertions, 9 deletions
@@ -1,6 +1,6 @@ pkgbase = totalmapper-git pkgdesc = A simple utility for remapping keys using the Linux event handling system. - pkgver = 1.4.3 + pkgver = 1.4.3.r3.gd3a5c8b pkgrel = 1 url = https://github.com/ellbur/totalmapper arch = x86_64 @@ -12,7 +12,7 @@ pkgbase = totalmapper-git provides = totalmapper conflicts = totalmapper conflicts = totalmapper-bin - source = totalmapper::git+https://github.com/xiaohuirong/totalmapper + source = totalmapper::git+https://github.com/ellbur/totalmapper sha512sums = SKIP pkgname = totalmapper-git @@ -1,7 +1,7 @@ -# Maintainer: Hoream <2175223953@qq.com> +# Maintainer: Hoream <hoream@qq.com> _pkgname="totalmapper" pkgname="${_pkgname}-git" -pkgver=1.4.3 +pkgver=1.4.3.r3.gd3a5c8b pkgrel=1 pkgdesc="A simple utility for remapping keys using the Linux event handling system." arch=(x86_64) @@ -11,13 +11,13 @@ depends=() provides=("${_pkgname}") conflicts=("${_pkgname}" "${_pkgname}-bin") makedepends=('cargo' 'git' 'glibc' 'gcc-libs') -source=("${_pkgname}::git+https://github.com/xiaohuirong/${_pkgname}") +source=("${_pkgname}::git+https://github.com/ellbur/${_pkgname}") sha512sums=('SKIP') -# pkgver() { -# cd "${srcdir}/${_pkgname}" -# git describe --tags | sed -E 's/([^-]*-g)/r\1/;s/-/./g;s/^v//' -# } +pkgver() { + cd "${srcdir}/${_pkgname}" + git describe --tags | sed -E 's/([^-]*-g)/r\1/;s/-/./g;s/^v//' +} build() { cd "${srcdir}/${_pkgname}" |