Date: Friday, March 3, 2023 @ 04:50:49
  Author: heftig
Revision: 470149

archrelease: copy trunk to testing-x86_64

Added:
  gtk3/repos/testing-x86_64/
  gtk3/repos/testing-x86_64/PKGBUILD
    (from rev 470147, gtk3/trunk/PKGBUILD)
  gtk3/repos/testing-x86_64/gtk-query-immodules-3.0.hook
    (from rev 470147, gtk3/trunk/gtk-query-immodules-3.0.hook)
  gtk3/repos/testing-x86_64/gtk3.install
    (from rev 470147, gtk3/trunk/gtk3.install)

------------------------------+
 PKGBUILD                     |  156 +++++++++++++++++++++++++++++++++++++++++
 gtk-query-immodules-3.0.hook |   11 ++
 gtk3.install                 |    3 
 3 files changed, 170 insertions(+)

Copied: gtk3/repos/testing-x86_64/PKGBUILD (from rev 470147, 
gtk3/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD                             (rev 0)
+++ testing-x86_64/PKGBUILD     2023-03-03 04:50:49 UTC (rev 470149)
@@ -0,0 +1,156 @@
+# Maintainer: Jan Alexander Steffens (heftig) <[email protected]>
+# Contributor: Ionut Biru <[email protected]>
+
+pkgbase=gtk3
+pkgname=(
+  gtk3
+  gtk3-demos
+  gtk3-docs
+)
+pkgver=3.24.37
+pkgrel=1
+epoch=1
+pkgdesc="GObject-based multi-platform GUI toolkit"
+url="https://www.gtk.org/";
+arch=(x86_64)
+license=(LGPL)
+depends=(
+  adwaita-icon-theme
+  atk
+  cairo
+  cantarell-fonts
+  dconf
+  desktop-file-utils
+  fontconfig
+  fribidi
+  gdk-pixbuf2
+  glib2
+  harfbuzz
+  iso-codes
+  libcloudproviders
+  libcolord
+  libcups
+  libegl
+  libepoxy
+  libgl
+  librsvg
+  libxcomposite
+  libx11
+  libxcursor
+  libxdamage
+  libxext
+  libxfixes
+  libxi
+  libxinerama
+  libxkbcommon
+  libxrandr
+  libxrender
+  pango
+  shared-mime-info
+  tracker3
+  wayland
+)
+makedepends=(
+  git
+  glib2-docs
+  gobject-introspection
+  gtk-doc
+  meson
+  sassc
+  wayland-protocols
+)
+_commit=013b629a2e5420cc01647f859226eb1a37ebe661  # tags/3.24.37^0
+source=(
+  "git+https://gitlab.gnome.org/GNOME/gtk.git#commit=$_commit";
+  gtk-query-immodules-3.0.hook
+)
+sha256sums=('SKIP'
+            'a0319b6795410f06d38de1e8695a9bf9636ff2169f40701671580e60a108e229')
+
+pkgver() {
+  cd gtk
+  git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
+}
+
+prepare() {
+  cd gtk
+}
+
+build() {
+  local meson_options=(
+    -D broadway_backend=true
+    -D cloudproviders=true
+    -D colord=yes
+    -D gtk_doc=true
+    -D introspection=true
+    -D man=true
+    -D tracker3=true
+  )
+
+  CFLAGS+=" -DG_DISABLE_CAST_CHECKS"
+  arch-meson gtk build "${meson_options[@]}"
+  meson compile -C build
+}
+
+_pick() {
+  local p="$1" f d; shift
+  for f; do
+    d="$srcdir/$p/${f#$pkgdir/}"
+    mkdir -p "$(dirname "$d")"
+    mv "$f" "$d"
+    rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
+  done
+}
+
+package_gtk3() {
+  depends+=(gtk-update-icon-cache)
+  optdepends=('evince: Default print preview command')
+  provides=(
+    gtk3-print-backends
+    libgailutil-3.so
+    libgdk-3.so
+    libgtk-3.so
+  )
+  conflicts=(gtk3-print-backends)
+  replaces=("gtk3-print-backends<=3.22.26-1")
+  install=gtk3.install
+
+  meson install -C build --destdir "$pkgdir"
+
+  install -Dm644 /dev/stdin "$pkgdir/usr/share/gtk-3.0/settings.ini" <<END
+[Settings]
+gtk-icon-theme-name = Adwaita
+gtk-theme-name = Adwaita
+gtk-font-name = Cantarell 11
+END
+
+  install -Dt "$pkgdir/usr/share/libalpm/hooks" -m644 
gtk-query-immodules-3.0.hook
+
+  cd "$pkgdir"
+
+  _pick demo usr/bin/gtk3-{demo,demo-application,icon-browser,widget-factory}
+  _pick demo 
usr/share/applications/gtk3-{demo,icon-browser,widget-factory}.desktop
+  _pick demo usr/share/glib-2.0/schemas/org.gtk.{Demo,exampleapp}.gschema.xml
+  _pick demo usr/share/icons/hicolor/*/apps/gtk3-{demo,widget-factory}[-.]*
+  _pick demo 
usr/share/man/man1/gtk3-{demo,demo-application,icon-browser,widget-factory}.1
+
+  _pick docs usr/share/gtk-doc
+
+  # Built by GTK 4, shared with GTK 3
+  rm usr/bin/gtk-update-icon-cache
+  rm usr/share/man/man1/gtk-update-icon-cache.1
+}
+
+package_gtk3-demos() {
+  pkgdesc+=" (demo applications)"
+  depends=(gtk3)
+  mv demo/* "$pkgdir"
+}
+
+package_gtk3-docs() {
+  pkgdesc+=" (documentation)"
+  depends=()
+  mv docs/* "$pkgdir"
+}
+
+# vim:set sw=2 sts=-1 et:

Copied: gtk3/repos/testing-x86_64/gtk-query-immodules-3.0.hook (from rev 
470147, gtk3/trunk/gtk-query-immodules-3.0.hook)
===================================================================
--- testing-x86_64/gtk-query-immodules-3.0.hook                         (rev 0)
+++ testing-x86_64/gtk-query-immodules-3.0.hook 2023-03-03 04:50:49 UTC (rev 
470149)
@@ -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

Copied: gtk3/repos/testing-x86_64/gtk3.install (from rev 470147, 
gtk3/trunk/gtk3.install)
===================================================================
--- testing-x86_64/gtk3.install                         (rev 0)
+++ testing-x86_64/gtk3.install 2023-03-03 04:50:49 UTC (rev 470149)
@@ -0,0 +1,3 @@
+pre_remove() {
+    rm -f /usr/lib/gtk-3.0/3.0.0/immodules.cache
+}

Reply via email to