Date: Sunday, March 5, 2023 @ 05:01:30
  Author: heftig
Revision: 470249

archrelease: copy trunk to testing-x86_64

Added:
  gtk4/repos/testing-x86_64/
  gtk4/repos/testing-x86_64/PKGBUILD
    (from rev 470246, gtk4/trunk/PKGBUILD)
  gtk4/repos/testing-x86_64/gtk-update-icon-cache.hook
    (from rev 470246, gtk4/trunk/gtk-update-icon-cache.hook)
  gtk4/repos/testing-x86_64/gtk-update-icon-cache.script
    (from rev 470246, gtk4/trunk/gtk-update-icon-cache.script)
  gtk4/repos/testing-x86_64/gtk4-querymodules.hook
    (from rev 470246, gtk4/trunk/gtk4-querymodules.hook)

------------------------------+
 PKGBUILD                     |  184 +++++++++++++++++++++++++++++++++++++++++
 gtk-update-icon-cache.hook   |   13 ++
 gtk-update-icon-cache.script |   10 ++
 gtk4-querymodules.hook       |   12 ++
 4 files changed, 219 insertions(+)

Copied: gtk4/repos/testing-x86_64/PKGBUILD (from rev 470246, 
gtk4/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD                             (rev 0)
+++ testing-x86_64/PKGBUILD     2023-03-05 05:01:30 UTC (rev 470249)
@@ -0,0 +1,184 @@
+# Maintainer: Jan Alexander Steffens (heftig) <[email protected]>
+
+pkgbase=gtk4
+pkgname=(
+  gtk4
+  gtk4-demos
+  gtk4-docs
+  gtk-update-icon-cache
+)
+pkgver=4.10.0
+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
+  cairo
+  cantarell-fonts
+  dconf
+  desktop-file-utils
+  fontconfig
+  fribidi
+  gdk-pixbuf2
+  glib2
+  graphene
+  gst-plugins-bad-libs
+  harfbuzz
+  iso-codes
+  libcloudproviders
+  libcolord
+  libcups
+  libegl
+  libepoxy
+  libgl
+  libjpeg
+  libpng
+  librsvg
+  libtiff
+  libx11
+  libxcursor
+  libxdamage
+  libxext
+  libxfixes
+  libxi
+  libxinerama
+  libxkbcommon
+  libxrandr
+  libxrender
+  pango
+  shared-mime-info
+  tracker3
+  wayland
+)
+makedepends=(
+  docbook-xsl
+  gi-docgen
+  git
+  gobject-introspection
+  meson
+  python-docutils
+  python-gobject
+  sassc
+  shaderc
+  wayland-protocols
+)
+checkdepends=(weston)
+_commit=47aa0dcc7f1a895d19d7ded7eb5eb429141c432e  # tags/4.10.0^0
+source=(
+  "git+https://gitlab.gnome.org/GNOME/gtk.git#commit=$_commit";
+  gtk-update-icon-cache.{hook,script}
+  gtk4-querymodules.hook
+)
+b2sums=('SKIP'
+        
'136bdb410c46daf769175e8e8837286576391797a4762b8cf388217e893dd6c5087c5c91c347cbdf7d3e9dcd2c978c2fb275b5af1f3425c9f7979fbc65a81324'
+        
'6bcd839ef82296d864587e0cc7acc0145bdea8e5235af304747cf3c0e564c2757cc67c0373dc044bec83dccfc57dc899546c2fccea96cff2bba22f09978a3814'
+        
'dcb1a99e0b65d0eb8d220686c2cbbba073c76297875661d6ff3a1ecb9d6be07ad79a69575133a60ee26f1f6127df91fb250d06f5359fcc2a9e5dd849e195d0bb')
+
+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=enabled
+    -D colord=enabled
+    -D gtk_doc=true
+    -D man-pages=true
+    -D tracker=enabled
+  )
+
+  CFLAGS+=" -DG_DISABLE_CAST_CHECKS"
+  arch-meson gtk build "${meson_options[@]}"
+  meson compile -C build
+}
+
+check() (
+  export XDG_RUNTIME_DIR="$PWD/runtime-dir" WAYLAND_DISPLAY=wayland-5
+
+  mkdir -p -m 700 "$XDG_RUNTIME_DIR"
+  weston --backend=headless-backend.so --socket=$WAYLAND_DISPLAY --idle-time=0 
&
+  _w=$!
+
+  trap "kill $_w; wait" EXIT
+
+  meson test -C build --print-errorlogs
+)
+
+_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_gtk4() {
+  depends+=(gtk-update-icon-cache)
+  optdepends=('evince: Default print preview command')
+  provides=(libgtk-4.so)
+
+  meson install -C build --destdir "$pkgdir"
+
+  install -Dm644 /dev/stdin "$pkgdir/usr/share/gtk-4.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 gtk4-querymodules.hook
+
+  cd "$pkgdir"
+
+  _pick demo 
usr/bin/gtk4-{demo,demo-application,icon-browser,node-editor,print-editor,widget-factory}
+  _pick demo 
usr/share/applications/org.gtk.{Demo4,IconBrowser4,PrintEditor4,WidgetFactory4,gtk4.NodeEditor}.desktop
+  _pick demo usr/share/glib-2.0/schemas/org.gtk.Demo4.gschema.xml
+  _pick demo 
usr/share/icons/hicolor/*/apps/org.gtk.{Demo4,IconBrowser4,PrintEditor4,WidgetFactory4,gtk4.NodeEditor}[-.]*
+  _pick demo 
usr/share/man/man1/gtk4-{demo,demo-application,icon-browser,node-editor,widget-factory}.1
+  _pick demo 
usr/share/metainfo/org.gtk.{Demo4,IconBrowser4,PrintEditor4,WidgetFactory4,gtk4.NodeEditor}.appdata.xml
+
+  _pick docs usr/share/doc
+
+  # Built by GTK 4, shared with GTK 3
+  _pick guic usr/bin/gtk4-update-icon-cache
+  _pick guic usr/share/man/man1/gtk4-update-icon-cache.1
+
+
+}
+
+package_gtk4-demos() {
+  pkgdesc+=" (demo applications)"
+  depends=(gtk4)
+  mv demo/* "$pkgdir"
+}
+
+package_gtk4-docs() {
+  pkgdesc+=" (documentation)"
+  depends=()
+  mv docs/* "$pkgdir"
+}
+
+package_gtk-update-icon-cache() {
+  pkgdesc="GTK icon cache updater"
+  depends=(gdk-pixbuf2 librsvg hicolor-icon-theme)
+
+  mv guic/* "$pkgdir"
+  ln -s gtk4-update-icon-cache "$pkgdir/usr/bin/gtk-update-icon-cache"
+  ln -s gtk4-update-icon-cache.1 
"$pkgdir/usr/share/man/man1/gtk-update-icon-cache.1"
+
+  install -Dt "$pkgdir/usr/share/libalpm/hooks" -m644 
gtk-update-icon-cache.hook
+  install -D gtk-update-icon-cache.script 
"$pkgdir/usr/share/libalpm/scripts/gtk-update-icon-cache"
+}
+
+# vim:set sw=2 sts=-1 et:

Copied: gtk4/repos/testing-x86_64/gtk-update-icon-cache.hook (from rev 470246, 
gtk4/trunk/gtk-update-icon-cache.hook)
===================================================================
--- testing-x86_64/gtk-update-icon-cache.hook                           (rev 0)
+++ testing-x86_64/gtk-update-icon-cache.hook   2023-03-05 05:01:30 UTC (rev 
470249)
@@ -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

Copied: gtk4/repos/testing-x86_64/gtk-update-icon-cache.script (from rev 
470246, gtk4/trunk/gtk-update-icon-cache.script)
===================================================================
--- testing-x86_64/gtk-update-icon-cache.script                         (rev 0)
+++ testing-x86_64/gtk-update-icon-cache.script 2023-03-05 05:01:30 UTC (rev 
470249)
@@ -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

Copied: gtk4/repos/testing-x86_64/gtk4-querymodules.hook (from rev 470246, 
gtk4/trunk/gtk4-querymodules.hook)
===================================================================
--- testing-x86_64/gtk4-querymodules.hook                               (rev 0)
+++ testing-x86_64/gtk4-querymodules.hook       2023-03-05 05:01:30 UTC (rev 
470249)
@@ -0,0 +1,12 @@
+[Trigger]
+Type = Path
+Operation = Install
+Operation = Upgrade
+Operation = Remove
+Target = usr/lib/gtk-4.0/4.0.0/*/
+
+[Action]
+Description = Updating GTK4 module cache...
+When = PostTransaction
+Exec = /usr/share/libalpm/scripts/gio-querymodules
+NeedsTargets

Reply via email to