2021-02-20 19:20:23 +01:00
|
|
|
# Description: A multi-platform toolkit for creating graphical user interfaces, version 4
|
|
|
|
# URL: https://www.gtk.org/
|
|
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
2022-02-12 16:46:06 +01:00
|
|
|
# Depends on: adwaita-icon-theme docbook-xsl graphene gst-plugins-bad libxkbcommon sassc xorg-libxcursor xorg-libxinerama
|
2022-10-30 12:04:24 +01:00
|
|
|
# Optional: colord cups vulkan wayland-protocols
|
2021-02-20 19:20:23 +01:00
|
|
|
|
|
|
|
name=gtk4
|
2022-10-30 10:55:18 +01:00
|
|
|
version=4.8.2
|
2022-12-22 11:32:42 +01:00
|
|
|
release=2
|
2021-02-20 19:20:23 +01:00
|
|
|
source=(https://gitlab.gnome.org/GNOME/gtk/-/archive/$version/gtk-$version.tar.bz2)
|
|
|
|
|
|
|
|
build() {
|
2021-08-28 19:10:07 +02:00
|
|
|
prt-get isinst colord && PKGMK_GTK4+=' -D colord=enabled'
|
2022-10-30 12:04:24 +01:00
|
|
|
prt-get isinst wayland-protocols || PKGMK_GTK4+=' -D wayland-backend=false'
|
2022-01-03 13:29:58 +01:00
|
|
|
# manpages need rst2man, which we don't have
|
2021-02-20 19:20:23 +01:00
|
|
|
|
|
|
|
meson setup gtk-$version build $PKGMK_GTK4 \
|
|
|
|
--prefix=/usr \
|
|
|
|
-D buildtype=plain \
|
2021-08-28 19:10:07 +02:00
|
|
|
--wrap-mode nodownload \
|
2022-10-30 12:04:24 +01:00
|
|
|
-D b_lto=true \
|
2021-08-28 19:10:07 +02:00
|
|
|
-D b_pie=true \
|
2021-02-20 19:20:23 +01:00
|
|
|
-D broadway-backend=true \
|
2022-01-03 13:29:58 +01:00
|
|
|
-D man-pages=false \
|
2021-02-20 19:20:23 +01:00
|
|
|
-D build-tests=false \
|
|
|
|
-D build-examples=false \
|
|
|
|
-D demos=false
|
|
|
|
meson compile -C build
|
|
|
|
DESTDIR=$PKG meson install -C build
|
|
|
|
|
|
|
|
rm -r $PKG/usr/share/locale
|
|
|
|
}
|