Commit 76bf9694 authored by Leo's avatar Leo

testing/vimix-theme: new aport

https://github.com/vinceliuice/vimix-gtk-themes
Flat Material Design Theme
parent 9bccd2d5
Pipeline #15089 failed with stages
in 40 seconds
# 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"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment