summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-06-26 09:34:41 +0200
committerErich Eckner <git@eckner.net>2018-06-26 09:34:41 +0200
commitf87aeb25918afa704c56521e8adbfc738d3bb4ec (patch)
treeac412ea3589c25bfbbe8beeafeff98fb127ce3a6
parent861db40a54aef2278273fac0529af25cb0b8478c (diff)
downloadarchlinuxewe.git.save-f87aeb25918afa704c56521e8adbfc738d3bb4ec.tar.xz
checkVersions: understand abiword-gtk2
-rw-r--r--abiword-gtk2/PKGBUILD2
-rwxr-xr-xcheckVersions18
2 files changed, 19 insertions, 1 deletions
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
@@ -246,6 +246,24 @@ then
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
quVer="$(