pkgname=ant-gtk-theme pkgver=1.0.3 pkgrel=6 pkgdesc="Ant Theme for GTK 3.x" arch=(any) url=https://www.gnome-look.org/p/1099856/ depends=('gtk3') md5sums=('f5baea52b8f6c96a2b88e0df617908eb') # 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/1515733716/s/$_s/t/$_t/u//Ant.tar") package(){ cd "$srcdir" find */ -type f -exec install -Dm644 '{}' "$pkgdir/usr/share/themes/{}" \; }