summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax J Rodríguez Beltrán2017-12-11 18:12:42 -0700
committerMax J Rodríguez Beltrán2017-12-11 18:12:42 -0700
commitc468e13cc343d3d10b1441800110293f46c1cd62 (patch)
tree0494d5dcc4034332a6c920359a726f1c9b0445cd
parent44383f8f9ea30867a2565af69781f2dd8893a370 (diff)
downloadaur-c468e13cc343d3d10b1441800110293f46c1cd62.tar.gz
Updated to version 1.0.3-4
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD9
2 files changed, 9 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 6652c9d5f5a..7ba2126a186 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,11 +1,11 @@
pkgbase = ant-gtk-theme
pkgdesc = Ant Theme for GTK 3.x
pkgver = 1.0.3
- pkgrel = 3
+ pkgrel = 4
url = https://www.gnome-look.org/p/1099856/
arch = any
depends = gtk3
- source = https://dl.opendesktop.org/api/files/download/id/1511326909/Ant.tar
+ source = https://dl.opendesktop.org/api/files/downloadfile/id/1511326909/s/$_s/t/$_t/Ant.tar
md5sums = dad8e83340d4d7c8d90567ebe8445e38
pkgname = ant-gtk-theme
diff --git a/PKGBUILD b/PKGBUILD
index e27b0a494e3..ae15e4204d6 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,13 +1,18 @@
pkgname=ant-gtk-theme
pkgver=1.0.3
-pkgrel=3
+pkgrel=4
pkgdesc="Ant Theme for GTK 3.x"
arch=(any)
url=https://www.gnome-look.org/p/1099856/
depends=('gtk3')
-source=("https://dl.opendesktop.org/api/files/download/id/1511326909/Ant.tar")
md5sums=('dad8e83340d4d7c8d90567ebe8445e38')
+# Hash and Timestamp (taken from macos-icon-theme pkgbuild)
+_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/1511326909/s/$_s/t/$_t/Ant.tar")
+
package(){
cd "$srcdir"
find */ -type f -exec install -Dm644 '{}' "$pkgdir/usr/share/themes/{}" \;