summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabian Bornschein2020-09-08 18:00:06 +0200
committerFabian Bornschein2020-09-08 18:00:06 +0200
commitea70de3542a87fa3d5b9688f74797b71fccf1847 (patch)
treef36234c5696a56e5dcd367be75b21f0bd1a3b8a0
downloadaur-ea70de3542a87fa3d5b9688f74797b71fccf1847.tar.gz
Work for a cause, not for applause. Live life to express, not to impress.
-rw-r--r--.SRCINFO97
-rw-r--r--PKGBUILD66
-rw-r--r--gtk-query-immodules-3.0.hook11
-rw-r--r--gtk-update-icon-cache.hook13
-rw-r--r--gtk-update-icon-cache.script10
-rw-r--r--gtk3.install3
-rw-r--r--settings.ini4
7 files changed, 204 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..38693aa97cc
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,97 @@
+pkgbase = gtk3-cloudproviders
+ pkgdesc = GObject-based multi-platform GUI toolkit with libcloudproviders support
+ pkgver = 3.24.23
+ pkgrel = 1
+ epoch = 1
+ url = https://www.gtk.org/
+ arch = x86_64
+ license = LGPL
+ makedepends = gobject-introspection
+ makedepends = gtk-doc
+ makedepends = git
+ makedepends = glib2-docs
+ makedepends = sassc
+ makedepends = meson
+ depends = atk
+ depends = cairo
+ depends = libxcursor
+ depends = libxinerama
+ depends = libxrandr
+ depends = libxi
+ depends = libepoxy
+ depends = gdk-pixbuf2
+ depends = dconf
+ depends = libxcomposite
+ depends = libxdamage
+ depends = pango
+ depends = shared-mime-info
+ depends = at-spi2-atk
+ depends = wayland
+ depends = libxkbcommon
+ depends = adwaita-icon-theme
+ depends = json-glib
+ depends = librsvg
+ depends = wayland-protocols
+ depends = desktop-file-utils
+ depends = mesa
+ depends = cantarell-fonts
+ depends = colord
+ depends = rest
+ depends = libcups
+ depends = libcanberra
+ depends = fribidi
+ depends = iso-codes
+ depends = libcloudproviders
+ source = git+https://gitlab.gnome.org/GNOME/gtk.git#commit=016e8c55ab924c9ef4d32c8cb06253b1dc1be60d
+ source = settings.ini
+ source = gtk-query-immodules-3.0.hook
+ source = gtk-update-icon-cache.hook
+ source = gtk-update-icon-cache.script
+ sha256sums = SKIP
+ sha256sums = 01fc1d81dc82c4a052ac6e25bf9a04e7647267cc3017bc91f9ce3e63e5eb9202
+ sha256sums = a0319b6795410f06d38de1e8695a9bf9636ff2169f40701671580e60a108e229
+ sha256sums = 2d435e3bec8b79b533f00f6d04decb1d7c299c6e89b5b175f20be0459f003fe8
+ sha256sums = f1d3a0dbfd82f7339301abecdbe5f024337919b48bd0e09296bb0e79863b2541
+
+pkgname = gtk3-cloudproviders
+ install = gtk3.install
+ depends = atk
+ depends = cairo
+ depends = libxcursor
+ depends = libxinerama
+ depends = libxrandr
+ depends = libxi
+ depends = libepoxy
+ depends = gdk-pixbuf2
+ depends = dconf
+ depends = libxcomposite
+ depends = libxdamage
+ depends = pango
+ depends = shared-mime-info
+ depends = at-spi2-atk
+ depends = wayland
+ depends = libxkbcommon
+ depends = adwaita-icon-theme
+ depends = json-glib
+ depends = librsvg
+ depends = wayland-protocols
+ depends = desktop-file-utils
+ depends = mesa
+ depends = cantarell-fonts
+ depends = colord
+ depends = rest
+ depends = libcups
+ depends = libcanberra
+ depends = fribidi
+ depends = iso-codes
+ depends = libcloudproviders
+ depends = gtk-update-icon-cache
+ provides = gtk3
+ provides = gtk3-print-backends
+ provides = libgtk-3.so
+ provides = libgdk-3.so
+ provides = libgailutil-3.so
+ conflicts = gtk3
+ conflicts = gtk3-print-backends
+ replaces = gtk3-print-backends<=3.22.26-1
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..9a9987a3096
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,66 @@
+# Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
+# Contributor: Ionut Biru <ibiru@archlinux.org>
+# Contributor: Fabian Bornschein <plusfabi@gmail.com>
+
+pkgname=gtk3-cloudproviders
+pkgver=3.24.23
+pkgrel=1
+epoch=1
+pkgdesc="GObject-based multi-platform GUI toolkit with libcloudproviders support"
+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 libcloudproviders)
+makedepends=(gobject-introspection gtk-doc git glib2-docs sassc meson)
+license=(LGPL)
+_commit=016e8c55ab924c9ef4d32c8cb06253b1dc1be60d # tags/3.24.23^0
+source=("git+https://gitlab.gnome.org/GNOME/gtk.git#commit=$_commit"
+ settings.ini
+ gtk-query-immodules-3.0.hook
+ gtk-update-icon-cache.hook
+ gtk-update-icon-cache.script)
+sha256sums=('SKIP'
+ '01fc1d81dc82c4a052ac6e25bf9a04e7647267cc3017bc91f9ce3e63e5eb9202'
+ 'a0319b6795410f06d38de1e8695a9bf9636ff2169f40701671580e60a108e229'
+ '2d435e3bec8b79b533f00f6d04decb1d7c299c6e89b5b175f20be0459f003fe8'
+ 'f1d3a0dbfd82f7339301abecdbe5f024337919b48bd0e09296bb0e79863b2541')
+
+pkgver() {
+ cd gtk
+ git describe --tags | sed 's/-/+/g'
+}
+
+prepare() {
+ cd gtk
+}
+
+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() {
+ depends+=(gtk-update-icon-cache)
+ provides=(gtk3 gtk3-print-backends libgtk-3.so libgdk-3.so libgailutil-3.so)
+ conflicts=(gtk3 gtk3-print-backends)
+ replaces=("gtk3-print-backends<=3.22.26-1")
+ install=gtk3.install
+
+ DESTDIR="$pkgdir" meson install -C build
+
+ install -Dt "$pkgdir/usr/share/gtk-3.0" -m644 settings.ini
+ install -Dt "$pkgdir/usr/share/libalpm/hooks" -m644 gtk-query-immodules-3.0.hook
+
+ # split this out to use with gtk2 too
+ mv "$pkgdir/usr/bin/gtk-update-icon-cache" "$srcdir"
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/gtk-query-immodules-3.0.hook b/gtk-query-immodules-3.0.hook
new file mode 100644
index 00000000000..4d81bd71391
--- /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
diff --git a/gtk-update-icon-cache.hook b/gtk-update-icon-cache.hook
new file mode 100644
index 00000000000..758a62187a9
--- /dev/null
+++ b/gtk-update-icon-cache.hook
@@ -0,0 +1,13 @@
+[Trigger]
+Type = Path
+Operation = Install
+Operation = Upgrade
+Operation = Remove
+Target = usr/share/icons/*/
+Target = !usr/share/icons/*/?*
+
+[Action]
+Description = Updating icon theme caches...
+When = PostTransaction
+Exec = /usr/share/libalpm/scripts/gtk-update-icon-cache
+NeedsTargets
diff --git a/gtk-update-icon-cache.script b/gtk-update-icon-cache.script
new file mode 100644
index 00000000000..ee0f1d12d0b
--- /dev/null
+++ b/gtk-update-icon-cache.script
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+while read -r f; do
+ if [[ -e ${f}index.theme ]]; then
+ gtk-update-icon-cache -q "$f"
+ elif [[ -d $f ]]; then
+ rm -f "${f}icon-theme.cache"
+ rmdir --ignore-fail-on-non-empty "$f"
+ fi
+done
diff --git a/gtk3.install b/gtk3.install
new file mode 100644
index 00000000000..c0c44539de6
--- /dev/null
+++ b/gtk3.install
@@ -0,0 +1,3 @@
+pre_remove() {
+ rm -f /usr/lib/gtk-3.0/3.0.0/immodules.cache
+}
diff --git a/settings.ini b/settings.ini
new file mode 100644
index 00000000000..921d1ddeec0
--- /dev/null
+++ b/settings.ini
@@ -0,0 +1,4 @@
+[Settings]
+gtk-icon-theme-name = Adwaita
+gtk-theme-name = Adwaita
+gtk-font-name = Cantarell 11