aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2013-10-20 18:54:36 +0200
committerJohannes Löthberg <johannes@kyriasis.com>2015-06-08 12:21:36 +0200
commit312c1ff6e88b224a7f982477e33ecef849f5f6d4 (patch)
tree15e8000705482c27dccf3dfa8ca5c9fa671737d0
parenteae8a600524ddb5c67fa89f36b186b6649fbd8a1 (diff)
downloadpkgbuilds-312c1ff6e88b224a7f982477e33ecef849f5f6d4.tar.xz
pcmanfm-git: Replaced pkgver() function with cleaner version
-rw-r--r--PKGBUILD2
1 files changed, 1 insertions, 1 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 48cbf65..a1daaee 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -21,7 +21,7 @@ md5sums=('SKIP')
pkgver() {
cd "$srcdir"/pcmanfm
- git describe --always --long | sed -E 's/([^-]*-g)/r\1/;s/-/./g'
+ printf "%s" "$(git describe --always --long | sed 's/-/-r/' | tr - .)"
}
build() {