From 795ca6dd3116d609f2eca2923f0afbb927fb4fb8 Mon Sep 17 00:00:00 2001 From: Dor dicke Gind Date: Mon, 4 Jul 2022 22:51:00 +0200 Subject: [PATCH] [INIT] --- PKGBUILD | 66 + assets.svg | 2308 ++++++++++++++++++++++++++++++++++ gtk-query-immodules-3.0.hook | 11 + 3 files changed, 2385 insertions(+) create mode 100644 PKGBUILD create mode 100644 assets.svg create mode 100644 gtk-query-immodules-3.0.hook diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..7f31c98 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,66 @@ +# Maintainer: Jan Alexander Steffens (heftig) +# Contributor: Ionut Biru +_froggy_highlight_color=#839942 + +pkgname=gtk3-froggy +pkgver=3.24.30+126+g34038aaf7d +pkgrel=1 +epoch=1 +pkgdesc="Provides normal gtk3 with a froggy highlight color for the Adwaita theme, you can even edit the PKGBUILD to change to color" +arch=(x86_64) +url="https://www.gtk.org/" +depends=(atk cairo libxcursor libxinerama libxrandr libxi libepoxy gdk-pixbuf2 + dconf libxcomposite libxdamage pango shared-mime-info at-spi2-atk + wayland libxkbcommon adwaita-icon-theme json-glib librsvg + wayland-protocols desktop-file-utils mesa cantarell-fonts colord rest + libcups libcanberra fribidi iso-codes tracker3 libcloudproviders + gtk-update-icon-cache) +makedepends=(gobject-introspection gtk-doc git glib2-docs sassc meson) +provides=(gtk3=3.24.30 gtk3-print-backends libgtk-3.so libgdk-3.so libgailutil-3.so) +conflicts=(gtk3=3.24.30 gtk3-print-backends) +replaces=("gtk3-print-backends<=3.22.26-1") +license=(LGPL) +install=gtk3.install +source=('git+https://gitlab.gnome.org/GNOME/gtk.git#branch=gtk-3-24' + gtk-query-immodules-3.0.hook) +sha256sums=('SKIP' + 'a0319b6795410f06d38de1e8695a9bf9636ff2169f40701671580e60a108e229') + +pkgver() { + cd gtk + git describe --tags | sed 's/-/+/g' +} + +prepare() { + cd gtk + sed -i "s/#3584e4/$_froggy_highlight_color/" gtk/theme/Adwaita/_colors.scss + sed -i "s/darken(#3584e4, 20%)/$_froggy_highlight_color/" gtk/theme/Adwaita/_colors.scss + cp ../../assets.svg gtk/theme/Adwaita/assets.svg +} + +build() { + CFLAGS+=" -DG_ENABLE_DEBUG -DG_DISABLE_CAST_CHECKS" + arch-meson gtk build \ + -D broadway_backend=true \ + -D cloudproviders=true \ + -D colord=yes \ + -D gtk_doc=true \ + -D man=true + meson compile -C build +} + +package() { + DESTDIR="$pkgdir" meson install -C build + + install -Dm644 /dev/stdin "$pkgdir/usr/share/gtk-3.0/settings.ini" < + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gtk-query-immodules-3.0.hook b/gtk-query-immodules-3.0.hook new file mode 100644 index 0000000..4d81bd7 --- /dev/null +++ b/gtk-query-immodules-3.0.hook @@ -0,0 +1,11 @@ +[Trigger] +Type = Path +Operation = Install +Operation = Upgrade +Operation = Remove +Target = usr/lib/gtk-3.0/3.0.0/immodules/*.so + +[Action] +Description = Probing GTK3 input method modules... +When = PostTransaction +Exec = /usr/bin/gtk-query-immodules-3.0 --update-cache