33 lines
1.0 KiB
Plaintext
33 lines
1.0 KiB
Plaintext
# 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
|
|
# Depends on: adwaita-icon-theme docbook-xsl graphene gst-plugins-bad libxkbcommon sassc xorg-libxcursor xorg-libxinerama
|
|
# Optional: colord cups vulkan wayland
|
|
|
|
name=gtk4
|
|
version=4.6.3
|
|
release=1
|
|
source=(https://gitlab.gnome.org/GNOME/gtk/-/archive/$version/gtk-$version.tar.bz2)
|
|
|
|
build() {
|
|
prt-get isinst colord && PKGMK_GTK4+=' -D colord=enabled'
|
|
prt-get isinst wayland || PKGMK_GTK4+=' -D wayland-backend=false'
|
|
# manpages need rst2man, which we don't have
|
|
|
|
meson setup gtk-$version build $PKGMK_GTK4 \
|
|
--prefix=/usr \
|
|
-D buildtype=plain \
|
|
--wrap-mode nodownload \
|
|
-D b_lto=true \
|
|
-D b_pie=true \
|
|
-D broadway-backend=true \
|
|
-D man-pages=false \
|
|
-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
|
|
}
|