diff options
author | Anarky | 2020-04-14 01:25:33 +0200 |
---|---|---|
committer | Anarky | 2020-04-14 10:44:21 +0200 |
commit | f950f2eeef83a7a4c6dd099d295c10ba2176c17b (patch) | |
tree | 2fc65f1c98f2f07b2b6112a0be91c2467ddc8810 /PKGBUILD | |
parent | ac2907505b1a4d949aa8212d875c0658d1bbe3b2 (diff) | |
download | aur-gtk-theme-equinox.tar.gz |
Re-upload, rework source download
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 24 |
1 files changed, 18 insertions, 6 deletions
@@ -1,10 +1,10 @@ -# Maintainer: mortzprk <mortz.prk@gmail.com> +# Contributor: mortzprk <mortz.prk@gmail.com> # Contributor: eolianoe <eolianoe At GoogleMAIL DoT com> # Contributor: Frikilinux <frikilinux at frikilinux.com.ar> pkgname=gtk-theme-equinox pkgver=1.50 -pkgrel=3 +pkgrel=4 pkgdesc="Gtk theme for equinox engine" url="http://gnome-look.org/content/show.php?content=140449" license=('GPL2') @@ -12,14 +12,26 @@ arch=('any') depends=('gtk-engine-equinox') optdepends=('faenza-icon-theme: icons designed for this theme' 'lib32-gtk-engine-equinox: for 32 bits applications') -source=("https://dl.opendesktop.org/api/files/download/id/1460966672/140449-equinox-themes-${pkgver}.tar.gz") -sha256sums=('32b3cedfbc27e466289aa8a0b6d1f3f964a553956d94bf267bd42c749691823c') -noextract=("140449-equinox-themes-${pkgver}.tar.gz") +#sha256sums=('32b3cedfbc27e466289aa8a0b6d1f3f964a553956d94bf267bd42c749691823c') +#noextract=("140449-equinox-themes-${pkgver}.tar.gz") package() { + local _filename=140449-equinox-themes-${pkgver}.tar.gz + cd ${srcdir} + + curl -L -o ${_filename} $(curl -s -X POST https://www.gnome-look.org/dl \ + -d 'file_id=1460966672&file_type=application/x-gzip&file_name=140449-equinox-themes-1.50.tar.gz&file_size=507470&project_id=1078580' | \ + grep -o 'https://.*tar.gz') + + echo "32b3cedfbc27e466289aa8a0b6d1f3f964a553956d94bf267bd42c749691823c ${_filename}" | sha256sum --check --status + if [ $? -ne 0 ]; then + echo "${_filename}: bad checksum, exiting" + exit 1 + fi + mkdir -p "${pkgdir}/usr/share/themes" - tar xzf 140449-equinox-themes-${pkgver}.tar.gz -C "${pkgdir}"/usr/share/themes + tar xzf ${_filename} -C "${pkgdir}"/usr/share/themes mv "${pkgdir}/usr/share/themes/Equinox Evolution.crx" \ "${pkgdir}/usr/share/themes/Equinox Evolution" |