summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorGordonGR2018-03-15 16:44:07 +0200
committerGordonGR2018-03-15 16:44:07 +0200
commit1838efb40a9f066878d89fa7975a86df91dc3751 (patch)
tree74748eaa27d377a1b870fd6819438aff1debbe05
parente77fb180692bf870df151802c72be0e47ddf38fd (diff)
downloadaur-1838efb40a9f066878d89fa7975a86df91dc3751.tar.gz
1-3: Workaround for the opendesktop.org API problem
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD9
2 files changed, 10 insertions, 5 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 330ab0cee964..a1a9a543a4ba 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,13 +1,13 @@
# Generated by mksrcinfo v8
-# Sat Jan 13 16:43:48 UTC 2018
+# Thu Mar 15 14:43:26 UTC 2018
pkgbase = xcursor-atto
pkgdesc = A non-conventional circular cursor theme, built with pen and touch based input in mind
pkgver = 1
- pkgrel = 2
+ pkgrel = 3
url = https://www.gnome-look.org/p/999542/
arch = any
license = GPL
- source = https://dl.opendesktop.org/api/files/downloadfile/id/1460734305/s/4b0e9c9000653d8c27dfd79cfcbc5408/t/1515865201/u//167180-Atto-cursor.tar.gz
+ source = https://dl.opendesktop.org/api/files/downloadfile/id/1460734305/s/0f2a790cc3c16a0d6c1fcb79a5904628/t/1521128701/u//167180-Atto-cursor.tar.gz
md5sums = b53e4df14519c675cf973f2f44257555
pkgname = xcursor-atto
diff --git a/PKGBUILD b/PKGBUILD
index 000cbf77c6e3..6de60f6ddab0 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,13 +2,18 @@
pkgname=xcursor-atto
pkgver=1
-pkgrel=2
+pkgrel=3
pkgdesc="A non-conventional circular cursor theme, built with pen and touch based input in mind"
arch=('any')
url="https://www.gnome-look.org/p/999542/"
license=('GPL')
depends=()
-source=("https://dl.opendesktop.org/api/files/downloadfile/id/1460734305/s/4b0e9c9000653d8c27dfd79cfcbc5408/t/1515865201/u//167180-Atto-cursor.tar.gz")
+
+# Hash and Timestamp
+_p="var \(hash = '\(.*\)\|timetamp = '\(.*\)\)';"
+read _s _t <<< $(echo -n $(curl -s $url | sed -n "s/$_p/\2\3/p"))
+
+source=("https://dl.opendesktop.org/api/files/downloadfile/id/1460734305/s/$_s/t/$_t/u//167180-Atto-cursor.tar.gz")
md5sums=('b53e4df14519c675cf973f2f44257555')
package() {