summarylogtreecommitdiffstats
diff options
context:
space:
mode:
author5chdn2016-10-09 22:23:30 +0200
committer5chdn2016-10-09 22:23:30 +0200
commitda98ae7e33de922d04db19d3e2eba7999dd78fa6 (patch)
tree0bf247b75b129dcdee7e0ccd88e74343323db165
parent90712bb42e78e514a118f4609a787cd4d3ae927b (diff)
downloadaur-da98ae7e33de922d04db19d3e2eba7999dd78fa6.tar.gz
use tr and not sed
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD2
2 files changed, 2 insertions, 2 deletions
diff --git a/.SRCINFO b/.SRCINFO
index f964e4810fe..820864b5b98 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,5 +1,5 @@
# Generated by mksrcinfo v8
-# Sun Oct 9 20:04:58 UTC 2016
+# Sun Oct 9 20:23:10 UTC 2016
pkgbase = solidity-git
pkgdesc = The Solidity Contract-Oriented Programming Language (Including solc, lllc; from latest unstable git version)
pkgver = v0.4.3.git.8572664
diff --git a/PKGBUILD b/PKGBUILD
index a207351d860..c6ff5d71bc8 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -40,7 +40,7 @@ provides=(
pkgver() {
cd ${pkgname%-git}
- echo "v`grep -m1 "PROJECT\_VERSION" CMakeLists.txt | sed 's/[[:alpha:]|\_|(|[:space:]|)|\"]//g'`.git.`git log --pretty=format:%h -n 1`"
+ echo "v`grep -m1 "PROJECT\_VERSION" CMakeLists.txt | tr -cd '[[:digit:]].'`.git.`git log --pretty=format:%h -n 1`"
}
build() {