diff options
author | Bermond | 2016-06-03 22:43:43 -0300 |
---|---|---|
committer | Bermond | 2016-06-03 22:43:43 -0300 |
commit | 4cb58a4edb0bfd30c056d99f2b57c0d262b313e0 (patch) | |
tree | ea3bbfafdabc3851720a855123179270c9c1f9ce | |
parent | c694e16d53f182ee91891c4b8684b810f92da672 (diff) | |
download | aur-4cb58a4edb0bfd30c056d99f2b57c0d262b313e0.tar.gz |
Updated pkgver, source and sha256sums to a more conservative approach
This will avoid download errors when the upstream version is updated
and this package is not yet updated. Note that pkgver is setted to
update automatically, leading makepkg to always produce a package that
is up-to-date with the upstream version.
-rw-r--r-- | .SRCINFO | 10 | ||||
-rwxr-xr-x | PKGBUILD | 16 |
2 files changed, 16 insertions, 10 deletions
@@ -1,9 +1,9 @@ # Generated by mksrcinfo v8 -# Sat Jun 4 01:29:57 UTC 2016 +# Sat Jun 4 01:43:11 UTC 2016 pkgbase = imagemagick-full-doc pkgdesc = The ImageMagick documentation (utilities manuals and libraries API) - pkgver = 7.0.1.6 - pkgrel = 2 + pkgver = 7.0.1.9 + pkgrel = 1 url = http://www.imagemagick.org/ arch = any license = custom @@ -11,8 +11,8 @@ pkgbase = imagemagick-full-doc conflicts = imagemagick-doc conflicts = imagemagick-git-doc conflicts = imagemagick-full-doc-git - source = http://www.imagemagick.org/download/ImageMagick-7.0.1-6.tar.xz - sha256sums = 18f5fa80ffd40be1b61946cdf58531df7fdf6d6e5551fd28a7dac83384e93f23 + source = http://www.imagemagick.org/download/ImageMagick.tar.xz + sha256sums = 876cf76ce84657af5b1e28414d0c75911029ed3dd47c791e8a10d5c3f6014894 pkgname = imagemagick-full-doc @@ -1,26 +1,32 @@ # Maintainer: Daniel Bermond < yahoo-com: danielbermond > _srcname="ImageMagick" -_srcver="7.0.1-6" pkgname=imagemagick-full-doc -pkgver="$(echo ${_srcver} | tr '-' '.')" -pkgrel=2 +pkgver=7.0.1.9 +pkgrel=1 pkgdesc="The ImageMagick documentation (utilities manuals and libraries API)" arch=('any') url="http://www.imagemagick.org/" license=('custom') provides=('imagemagick-doc') conflicts=('imagemagick-doc' 'imagemagick-git-doc' 'imagemagick-full-doc-git') -source=("http://www.imagemagick.org/download/${_srcname}-${_srcver}.tar.xz") -sha256sums=('18f5fa80ffd40be1b61946cdf58531df7fdf6d6e5551fd28a7dac83384e93f23') +source=("http://www.imagemagick.org/download/ImageMagick.tar.xz") +sha256sums=("$(curl -s http://www.imagemagick.org/download/digest.rdf | grep -A 5 ImageMagick.tar.xz | grep sha256 | grep -oE '>[[:alnum:]]*?<' | sed 's/[><]//g')") + +pkgver() { + _srcver=$(tar -tf ImageMagick.tar.xz | head -1 | cut -f1 -d"/" | sed 's/[^0-9\.-]*//g' | cut -c 2-) + printf "%s" "$(echo ${_srcver} | tr '-' '.')" +} build() { + _srcver=$(tar -tf ImageMagick.tar.xz | head -1 | cut -f1 -d"/" | sed 's/[^0-9\.-]*//g' | cut -c 2-) cd "$_srcname"-"$_srcver" ./configure --prefix=/usr } package() { + _srcver=$(tar -tf ImageMagick.tar.xz | head -1 | cut -f1 -d"/" | sed 's/[^0-9\.-]*//g' | cut -c 2-) cd "$_srcname"-"$_srcver" make DESTDIR="$pkgdir/" install-data-html |