diff options
author | Daniel Peukert | 2020-04-23 21:21:02 +0200 |
---|---|---|
committer | Daniel Peukert | 2020-04-23 21:21:02 +0200 |
commit | 842a6895310427bb58dd80d1ab230d1889a15e2a (patch) | |
tree | 8260a30c390b663518d893f52f3ec69843d9cc1c | |
parent | 41e054e21c3323a1b0e3cd5fec89b40a5f20650b (diff) | |
download | aur-842a6895310427bb58dd80d1ab230d1889a15e2a.tar.gz |
Unify git pkgver functions
-rw-r--r-- | PKGBUILD | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -19,7 +19,7 @@ _sourcedirectory="$pkgname" pkgver() { cd "$srcdir/$_sourcedirectory/" - git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' + git describe --long --tags | sed -e 's/-\([^-]*-g[^-]*\)$/-r\1/' -e 's/-/./g' } package() { |