extra/gtk4 to 4.6.0-1

This commit is contained in:
Kevin Mihelich 2021-12-31 23:44:06 +00:00
parent 4ef5fee5d5
commit 2267f0f46a

View file

@ -5,22 +5,23 @@
pkgbase=gtk4
pkgname=(gtk4 gtk-update-icon-cache gtk4-docs gtk4-demos)
pkgver=4.4.1
pkgver=4.6.0
pkgrel=1
epoch=1
pkgdesc="GObject-based multi-platform GUI toolkit"
arch=(x86_64)
url="https://www.gtk.org/"
depends=(glib2 cairo pango fribidi gdk-pixbuf2 libepoxy libgl libegl harfbuzz
libxkbcommon graphene iso-codes tracker3 libcolord wayland libxrandr
libx11 libxrender libxi libxext libxcursor libxdamage libxfixes
fontconfig libxinerama libcloudproviders libcups rest json-glib
gst-plugins-bad-libs librsvg dconf shared-mime-info desktop-file-utils
adwaita-icon-theme cantarell-fonts)
makedepends=(git meson gi-docgen shaderc sassc gobject-introspection docbook-xsl
wayland-protocols)
arch=(x86_64)
license=(LGPL)
_commit=3090fbac82d86543cd198ddf38d4044e05c87d91 # tags/4.4.1^0
depends=(glib2 cairo pango fribidi gdk-pixbuf2 libpng libtiff libjpeg libepoxy
libgl libegl harfbuzz libxkbcommon graphene iso-codes tracker3
libcolord wayland libxrandr libx11 libxrender libxi libxext libxcursor
libxdamage libxfixes fontconfig libxinerama libcloudproviders libcups
rest json-glib gst-plugins-bad-libs librsvg dconf shared-mime-info
desktop-file-utils adwaita-icon-theme cantarell-fonts)
makedepends=(git meson gi-docgen shaderc sassc gobject-introspection docbook-xsl
wayland-protocols python-gobject python-docutils)
checkdepends=(weston)
_commit=70cb61fb7104c76a15bc6494a10e6ff1d470f6d8 # tags/4.6.0^0
source=("git+https://github.com/GNOME/gtk.git#commit=$_commit"
gtk-update-icon-cache.{hook,script} gtk4-querymodules.hook)
sha256sums=('SKIP'
@ -30,7 +31,7 @@ sha256sums=('SKIP'
pkgver() {
cd gtk
git describe --tags | sed 's/-/+/g'
git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
}
prepare() {
@ -52,6 +53,18 @@ build() {
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
@ -116,4 +129,4 @@ package_gtk4-demos() {
mv demo/* "$pkgdir"
}
# vim:set ts=2 sw=2 et:
# vim:set sw=2 et: