diff options
author | Bermond | 2016-06-03 23:05:49 -0300 |
---|---|---|
committer | Bermond | 2016-06-03 23:05:49 -0300 |
commit | 9bab207973e69c447d64980ea2b9dcc5d17d7b9c (patch) | |
tree | 824bd22a679321edf7eac14429622f8c6dea60d2 | |
parent | a13995128c1906a5af334bdfff0c4481968f6a51 (diff) | |
download | aur-9bab207973e69c447d64980ea2b9dcc5d17d7b9c.tar.gz |
Fixed pkgver() to avoid errors
-rw-r--r-- | .SRCINFO | 4 | ||||
-rwxr-xr-x | PKGBUILD | 6 |
2 files changed, 5 insertions, 5 deletions
@@ -1,8 +1,8 @@ # Generated by mksrcinfo v8 -# Sat May 7 23:24:34 UTC 2016 +# Sat Jun 4 02:04:38 UTC 2016 pkgbase = imagemagick-full-doc-git pkgdesc = The ImageMagick documentation (utilities manuals and libraries API) - pkgver = 7.0.1.2.r10838.ga58ba05 + pkgver = 7.0.1.10.r10954.g83bceaa pkgrel = 1 url = http://www.imagemagick.org/ arch = i686 @@ -1,7 +1,7 @@ # Maintainer: Daniel Bermond < yahoo-com: danielbermond > pkgname=imagemagick-full-doc-git -pkgver=7.0.1.2.r10838.ga58ba05 +pkgver=7.0.1.10.r10954.g83bceaa pkgrel=1 pkgdesc="The ImageMagick documentation (utilities manuals and libraries API)" arch=('i686' 'x86_64') @@ -17,8 +17,8 @@ pkgver() { # Git, no tags available - local _version="$(grep "PACKAGE_VERSION=" version.sh | grep -o '[0-9.]*')" - local _release="$(grep "PACKAGE_RELEASE=" version.sh | grep -o '[0-9]')" + local _version="$(grep "PACKAGE_VERSION=" ./version.sh | sed 's/[^0-9\.]*//g')" + local _release="$(grep "PACKAGE_RELEASE=" ./version.sh | sed 's/[^0-9]*//g')" local _revision="$(printf "r%s.g%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)")" printf "%s.%s.%s" "$_version" "$_release" "$_revision" |