From f87aeb25918afa704c56521e8adbfc738d3bb4ec Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Tue, 26 Jun 2018 09:34:41 +0200 Subject: checkVersions: understand abiword-gtk2 --- abiword-gtk2/PKGBUILD | 2 +- checkVersions | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/abiword-gtk2/PKGBUILD b/abiword-gtk2/PKGBUILD index 4ac90d4b..47620a1c 100644 --- a/abiword-gtk2/PKGBUILD +++ b/abiword-gtk2/PKGBUILD @@ -12,7 +12,7 @@ depends=('fribidi' 'wv' 'librsvg' 'enchant' 'desktop-file-utils' 'gtk2' 'libxslt makedepends=('pkgconfig' 'boost') conflicts=('abiword' 'abiword-plugins') url='http://www.abisource.com' -source=("$_pkgname-$pkgver.tar.gz::http://abisource.com/downloads/$_pkgname/$pkgver/source/$_pkgname-$pkgver.tar.gz" +source=("$_pkgname-$pkgver.tar.gz::https://www.abisource.com/downloads/$_pkgname/$pkgver/source/$_pkgname-$pkgver.tar.gz" enchant-2.1.patch) sha256sums=('afbfd458fd02989d8b0c6362ba8a4c14686d89666f54cfdb5501bd2090cf3522' '444dc2aadea3c80310a509b690097541573f6d2652c573d04da66a0f385fcfb2') diff --git a/checkVersions b/checkVersions index a1282c76..019543c4 100755 --- a/checkVersions +++ b/checkVersions @@ -245,6 +245,24 @@ then sort -V | \ tail -n1 )" + elif echo "${src}" | \ + grep -q '//www\.abisource\.com/' + then + quVer="$( + echo "${src}" | \ + sed 's|\(/[^/]\+\)\{3\}$|/|' + )" + remVer="$( + curl_it "${quVer}" | \ + tr '<>' '\n' | \ + sed -n ' + s,^a href="\([0-9.]\+\)/"$,\1, + T + p + ' | \ + sort -V | \ + tail -n1 + )" elif echo "${src}" | \ grep -q '//download\.virtualbox\.org/' then -- cgit v1.2.3-70-g09d2