From 2f187729af77224bb80064a68b1e58f16631973e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niko=20B=C3=B6ckerman?= Date: Tue, 29 Mar 2016 09:10:30 +0300 Subject: [PATCH] mpfr: Fix versioning mpfr package had invalid version 3.1.4.-3 when it should have been 3.1.4-3. This was caused because an empty _patchlevel was set appended to the package version separated with a dot. This commit changes the package versioning so that the _patchlevel is appended to the package version only if it isn't empty. Similar commit 0c86b53 was done to mpfr package in MINGW-packages. --- mpfr/PKGBUILD | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mpfr/PKGBUILD b/mpfr/PKGBUILD index d3baa78e..09d92526 100644 --- a/mpfr/PKGBUILD +++ b/mpfr/PKGBUILD @@ -3,7 +3,10 @@ pkgname=('mpfr' 'mpfr-devel') _pkgver=3.1.4 _patchlevel= -pkgver=${_pkgver}.${_patchlevel} +pkgver=${_pkgver} +if [ -n "${_patchlevel}" ]; then + pkgver+=.${_patchlevel} +fi #pkgver=${_pkgver} pkgrel=1 pkgdesc="Multiple-precision floating-point library"