diff options
author | Bermond | 2016-06-07 18:04:13 -0300 |
---|---|---|
committer | Bermond | 2016-06-07 18:04:13 -0300 |
commit | d7b054e1c0358a1633e5849cebfee208665d76a0 (patch) | |
tree | bfa4e241a379e529edfd3af0930f24d4acaa30a7 | |
parent | 8cc0ab5105ed99d7c9a777616ff032c3726c6376 (diff) | |
download | aur-d7b054e1c0358a1633e5849cebfee208665d76a0.tar.gz |
Fixed regular expressions is sha256sums
-rw-r--r-- | .SRCINFO | 4 | ||||
-rwxr-xr-x | PKGBUILD | 5 |
2 files changed, 5 insertions, 4 deletions
@@ -1,9 +1,9 @@ # Generated by mksrcinfo v8 -# Tue Jun 7 20:33:49 UTC 2016 +# Tue Jun 7 21:04:04 UTC 2016 pkgbase = imagemagick-full pkgdesc = An image viewing/manipulation program (Q32 HDRI with all libs and features) pkgver = 7.0.1.10 - pkgrel = 1 + pkgrel = 2 url = http://www.imagemagick.org/ arch = i686 arch = x86_64 @@ -17,9 +17,10 @@ _windows_font_dir="/usr/share/fonts/WindowsFonts" _digest="http://www.imagemagick.org/download/digest.rdf" _srcname="ImageMagick" _srcver=$(curl -s "$_digest" | grep "${_srcname}\-7[0-9\.\-]*\.tar\.xz" | sed 's/[^0-9\.\-]*//g' | sed -r 's/.//;s/.{2}$//') +_srcverregex="$(echo ${_srcver} | sed 's/\./\\\./g' | sed 's/\-/\\\-/g')" # translate source version to a regular expression pkgname=imagemagick-full pkgver="$(echo ${_srcver} | tr '-' '.')" -pkgrel=1 +pkgrel=2 pkgdesc="An image viewing/manipulation program (Q32 HDRI with all libs and features)" arch=('i686' 'x86_64') url="http://www.imagemagick.org/" @@ -48,7 +49,7 @@ backup=("etc/ImageMagick-${pkgver%%.*}/coder.xml" "etc/ImageMagick-${pkgver%%.*}/type-windows.xml") options=('!docs' 'libtool' '!emptydirs') source=("http://www.imagemagick.org/download/${_srcname}-${_srcver}.tar.xz") -sha256sums=("$(curl -s ${_digest} | grep -A 5 ${_srcname}-${_srcver}.tar.xz | grep sha256 | grep -oE '>[[:alnum:]]*?<' | sed 's/[><]//g')") +sha256sums=("$(curl -s ${_digest} | grep -A 5 "${_srcname}\-${_srcverregex}\.tar\.xz" | grep 'sha256' | grep -oE '>[[:alnum:]]*?<' | sed 's/[><]//g')") build() { cd "$_srcname"-"$_srcver" |