diff options
author | Felix Morgner | 2018-05-20 11:00:45 +0200 |
---|---|---|
committer | Felix Morgner | 2018-05-20 11:00:45 +0200 |
commit | c07c7da465d15d1f5f504849d6960babcab00029 (patch) | |
tree | b37e83844212393a60fc3ef954e8b13dd16a88ac /PKGBUILD | |
download | aur-c07c7da465d15d1f5f504849d6960babcab00029.tar.gz |
Ant Slim 1.1.0 #1
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..dad1de80e252 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,25 @@ +# Based on 'ant-gtk-theme' + +pkgname=ant-slim-gtk-theme +pkgver=1.1.0 +pkgrel=1 +pkgdesc="Ant Slim Theme for GTK 3.x" +arch=(any) +url=https://www.gnome-look.org/p/1099856 + +depends=('gtk3') + +_filename="Ant-Slim.tar.gz" + +# Hash and Timestamp (taken from a comment on 'ant-gtk-theme') +_p="var hash = '\(.*\)';\|var timetamp = '\(.*\)';\|data-ppload-collection-id=\"\(.*\)\"" +read _collectionid _hash _token <<< $(echo -n $(curl -s $url | sed -n "s/$_p/\1\2\3/p")) +_fileid="$(curl -s "https://dl.opendesktop.org/api/files/index?collection_id=$_collectionid" | grep -Po '<files_(\d+)>.*<name>'$_filename'</name>.*\/files_\1>' | sed 's/.*<id>\(.*\)<\/id>.*/\1'/)" + +source=("https://dl.opendesktop.org/api/files/downloadfile/id/$_fileid/s/$_hash/t/$_token/$_filename") +sha256sums=('3c4f359233e03b2658da380f28a051d25bffaa9f9eb556842f22e2f54f9eba7a') + +package(){ + cd "$srcdir/Ant-Slim" + find */ -type f -exec install -Dm644 '{}' "$pkgdir/usr/share/themes/{}" \; +} |