summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorKyle2019-10-11 14:44:48 -0400
committerKyle2019-10-11 14:44:48 -0400
commitcda29d8a78ad675411cd282560d9b221b4601cb4 (patch)
tree9c39eaae5606cc79e5adbc4519fa67b7f5b7334f /PKGBUILD
parentde98e9d390e56d99de077b3d71679d8cfd8021e6 (diff)
downloadaur-espeak-ng-git.tar.gz
Removed espeak from provides, refactored pkgver() function to comply with vcs packaging guidelines and for cleaner versioning.
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD4
1 files changed, 2 insertions, 2 deletions
diff --git a/PKGBUILD b/PKGBUILD
index e9a80594211..a3faeb3e76b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -10,7 +10,7 @@ license=('GPL3')
depends=(gcc-libs pcaudiolib)
optdepends=()
makedepends=('git' 'ruby-ronn')
-provides=("espeak" "espeak-ng=${pkgver}")
+provides=("espeak-ng=${pkgver}")
conflicts=(espeak espeak-test)
source=('git+https://github.com/espeak-ng/espeak-ng.git')
md5sums=('SKIP')
@@ -18,7 +18,7 @@ md5sums=('SKIP')
pkgver() {
cd $_gitname
# Use the tag of the last commit
- git describe --always | sed -e 's|v||' -e 's|-|.|g'
+ printf "%s" "$(git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
}
build() {