diff options
author | XZS | 2016-03-23 17:24:11 +0100 |
---|---|---|
committer | XZS | 2016-03-23 17:55:45 +0100 |
commit | 222e75fd00b9b33af92da134504c77703fe58e6c (patch) | |
tree | d343e697d7910253b44aa39566f80cc9e0e78bad | |
parent | 2ec926d3b769212708745e3b1c8eb1402706a27a (diff) | |
download | aur-222e75fd00b9b33af92da134504c77703fe58e6c.tar.gz |
restore version significance
As it disappeared from the source archive content, the version prefix,
denoting the compatible gnome-shell version, became static to continue
counting versions without changing scheme.
The actual current version number can be extracted from the description
page of the theme, resurrecting it to its original meaning.
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 9 |
2 files changed, 8 insertions, 3 deletions
@@ -6,7 +6,9 @@ pkgbase = aurora-themes arch = any license = GPL3 optdepends = gtk-engine-murrine: for GTK2 themes + source = version.html::http://opendesktop.org/content/show.php?content=170523 source = http://gnome-look.org/CONTENT/content-files/170523-Dark-Aurora.tar.gz + sha256sums = 68991e89036a271fec7f8b6408416a6c2817f298ef326365117fe41b1b5222b5 sha256sums = 506332ec0d86b90f0e41be79875fa7b40bb923caf01c1412cf02020a6d056f28 pkgname = aurora-themes @@ -9,11 +9,14 @@ arch=('any') url="http://opendesktop.org/content/show.php?content=170523" license=('GPL3') optdepends=("gtk-engine-murrine: for GTK2 themes") -source=("http://gnome-look.org/CONTENT/content-files/${url##*=}-Dark-Aurora.tar.gz") -sha256sums=('506332ec0d86b90f0e41be79875fa7b40bb923caf01c1412cf02020a6d056f28') +source=("version.html::$url" + "http://gnome-look.org/CONTENT/content-files/${url##*=}-Dark-Aurora.tar.gz") +sha256sums=('68991e89036a271fec7f8b6408416a6c2817f298ef326365117fe41b1b5222b5' + '506332ec0d86b90f0e41be79875fa7b40bb923caf01c1412cf02020a6d056f28') pkgver() { - echo -n "3.18." + sed -n 's/.*<h1.*>Dark Aurora<\/h1>.*<span class="contentdata">\([^<]\+\)<\/span>.*/\1/p' \ + version.html | tr '\n' '.' while read -rd $'\0' do if [[ "$REPLY" -gt "$max" ]] |