diff options
| author | Leo <thinkabit.ukim@gmail.com> | 2020-04-20 15:38:30 -0300 |
|---|---|---|
| committer | Leo <thinkabit.ukim@gmail.com> | 2020-04-20 20:28:32 +0000 |
| commit | 76bf969413aadb14a45a144237336459b762ea71 (patch) | |
| tree | 3044866bf514daff30e9472e5603278931dfa528 /testing/vimix-theme | |
| parent | 9bccd2d5fbca31da43668827c7cbd0613b84b462 (diff) | |
| download | aports-76bf969413aadb14a45a144237336459b762ea71.tar.bz2 aports-76bf969413aadb14a45a144237336459b762ea71.tar.xz | |
testing/vimix-theme: new aport
https://github.com/vinceliuice/vimix-gtk-themes
Flat Material Design Theme
Diffstat (limited to 'testing/vimix-theme')
| -rw-r--r-- | testing/vimix-theme/APKBUILD | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/testing/vimix-theme/APKBUILD b/testing/vimix-theme/APKBUILD new file mode 100644 index 0000000000..fef9f93ed0 --- /dev/null +++ b/testing/vimix-theme/APKBUILD @@ -0,0 +1,83 @@ +# Contributor: Leo <thinkabit.ukim@gmail.com> +# Maintainer: Leo <thinkabit.ukim@gmail.com> +pkgname=vimix-theme +_datever=2020-02-24 +pkgver=${_datever//-/} +pkgrel=0 +pkgdesc="Flat Material Design Theme" +options="!check" # It is a theme, there is nothing to test +url="https://github.com/vinceliuice/vimix-gtk-themes" +arch="noarch" +license="GPL-3.0-only" +makedepends="bash sassc" +# These are the only variants of theme that are packaged if you want to package +# as based in the needs of the people in Alpine Linux, if you are in Alpine +# Linux and wishes to have another theme feel free to contribute +subpackages=" + vimix-ruby-dark:_dark_ruby:noarch + vimix-ruby-dark-gnome-shell:_dark_ruby_gnome_shell:noarch + vimix-ruby-dark-gtk2:_dark_ruby_gtk2:noarch + vimix-ruby-dark-gtk3:_dark_ruby_gtk3:noarch + " +source="$pkgname-$pkgver.tar.gz::https://github.com/vinceliuice/vimix-gtk-themes/archive/$_datever.tar.gz" +builddir="$srcdir/vimix-gtk-themes-$_datever" + +package() { + install -dm0755 "$pkgdir"/usr/share/themes +} + +_dark_ruby() { + pkgdesc="Dark, Ruby hue variant of Vimix theme" + + install -dm0755 "$subpkgdir"/usr/share/themes + + "$builddir"/install.sh \ + --size laptop \ + --theme ruby \ + --color dark \ + --flat \ + -d "$subpkgdir"/usr/share/themes + + # We don't need those at the moment, if anyone wants them they can + # add it to the package by adding a subpackage + rm -rf "$subpkgdir"/usr/share/themes/vimix-dark-laptop-ruby/cinnamon + rm -rf "$subpkgdir"/usr/share/themes/vimix-dark-laptop-ruby/metacity-1 + rm -rf "$subpkgdir"/usr/share/themes/vimix-dark-laptop-ruby/unity + rm -rf "$subpkgdir"/usr/share/themes/vimix-dark-laptop-ruby/xfwm4 + rm -rf "$subpkgdir"/usr/share/themes/vimix-dark-laptop-ruby/plank + + # Move back the assets for the gnome-shell subpackage of this theme + # back to the mainpkg which can be moved then with the 'amove' function + # made available by abuild + mkdir -p "$pkgdir"/usr/share/themes/vimix-dark-laptop-ruby + mv "$subpkgdir"/usr/share/themes/vimix-dark-laptop-ruby/gnome-shell \ + "$pkgdir"/usr/share/themes/vimix-dark-laptop-ruby + mv "$subpkgdir"/usr/share/themes/vimix-dark-laptop-ruby/gtk-2.0 \ + "$pkgdir"/usr/share/themes/vimix-dark-laptop-ruby + mv "$subpkgdir"/usr/share/themes/vimix-dark-laptop-ruby/gtk-3.0 \ + "$pkgdir"/usr/share/themes/vimix-dark-laptop-ruby +} + +_dark_ruby_gnome_shell() { + pkgdesc="GNOME Shell assets for Dark, Ruby hue variant of Vimix theme" + install_if="vimix-ruby-dark=$pkgver-r$pkgrel gnome-shell" + + amove usr/share/themes/vimix-dark-laptop-ruby/gnome-shell +} + +_dark_ruby_gtk2() { + pkgdesc="GTK+2.0 assets for Dark, Ruby hue variant of Vimix theme" + depends="gtk-murrine-engine gtk-engines" + install_if="vimix-ruby-dark=$pkgver-r$pkgrel gtk+2.0" + + amove usr/share/themes/vimix-dark-laptop-ruby/gtk-2.0 +} + +_dark_ruby_gtk3() { + pkgdesc="GTK+3.0 assets for Dark, Ruby hue variant of Vimix theme" + install_if="vimix-ruby-dark=$pkgver-r$pkgrel gtk+3.0" + + amove usr/share/themes/vimix-dark-laptop-ruby/gtk-3.0 +} + +sha512sums="bd8508a4de541f28d9eda1feacbc5e68996f2bd502e324a9e628be62cf18f812b0e00a0c01fd8816770bdf395f5f0675aa024b346c5bdaf8c8f65807b254849f vimix-theme-20200224.tar.gz" |
