[arch-commits] Commit in pulseaudio/trunk (PKGBUILD)

Jan Steffens heftig at archlinux.org
Sat Sep 26 02:49:30 UTC 2015


    Date: Saturday, September 26, 2015 @ 04:49:29
  Author: heftig
Revision: 247515

Fix dirty version handling

Modified:
  pulseaudio/trunk/PKGBUILD

----------+
 PKGBUILD |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2015-09-25 23:00:05 UTC (rev 247514)
+++ PKGBUILD	2015-09-26 02:49:29 UTC (rev 247515)
@@ -57,7 +57,10 @@
   cd $pkgbase-$pkgver
 
   _pulsever=$(./git-version-gen .tarball-version)
-  [[ $_pulsever = *.*.* ]] && _pulsever=${_pulsever%.*}
+  while [[ $_pulsever = *.*.* ]]; do
+    _pulsever=${_pulsever%.*}
+  done
+  _pulsever=${_pulsever%%-*}
 
   make -j1 DESTDIR="$pkgdir" install \
     bashcompletiondir=/usr/share/bash-completion/completions



More information about the arch-commits mailing list