summaryrefslogtreecommitdiff
path: root/user/gtk4/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'user/gtk4/APKBUILD')
-rw-r--r--user/gtk4/APKBUILD51
1 files changed, 51 insertions, 0 deletions
diff --git a/user/gtk4/APKBUILD b/user/gtk4/APKBUILD
new file mode 100644
index 000000000..1795d2107
--- /dev/null
+++ b/user/gtk4/APKBUILD
@@ -0,0 +1,51 @@
+# Contributor: Síle Ekaterin Liszka <sheila@vulpine.house>
+# Maintainer: Sile Ekaterin Liszka <sheila@vulpine.house>
+pkgname=gtk4
+pkgver=4.18.5
+pkgrel=0
+pkgdesc="Version 4 of the GNOME graphics toolkit"
+url="https://www.gtk.org"
+arch="all"
+options="!check" # Requires Wayland environment running
+license="LGPL-2.0+ AND LGPL-2.1+ AND LGPL-2.0-only AND Expat"
+depends=""
+makedepends="cairo-dev cmake cups-dev ffmpeg-dev ffmpeg-libs gdk-pixbuf-dev
+ gi-docgen glib-dev gobject-introspection-dev graphene-dev gstreamer-dev
+ gst-plugins-bad-dev iso-codes-dev libepoxy-dev libexecinfo-dev
+ librsvg-dev libxcursor-dev libxdamage-dev libxi-dev libxinerama-dev
+ libxkbcommon-dev libxrandr-dev meson pango-dev py3-docutils py3-jinja2
+ py3-markdown py3-pygments py3-pygobject py3-toml py3-typogrify tiff-dev
+ wayland-dev wayland-protocols"
+subpackages="$pkgname-dev $pkgname-doc"
+source="https://download.gnome.org/sources/gtk/${pkgver%.*}/gtk-$pkgver.tar.xz
+ vulkan-nullref.patch
+ "
+builddir="$srcdir/gtk-$pkgver"
+
+build() {
+ meson setup \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --localstatedir=/var \
+ --buildtype=release \
+ --wrap-mode=nofallback \
+ -Dc_link_args='-lexecinfo' \
+ -Dman-pages=true \
+ -Dbuild-examples=false \
+ -Dvulkan=disabled \
+ build
+ meson compile -C build
+}
+
+check() {
+ meson test -C build
+}
+
+package() {
+ DESTDIR="$pkgdir" meson install -C build
+}
+
+
+sha512sums="4a09188fdbeb532d8c2064199126eaf60d806118bb637d5182121f3d80d374acdf343568c3423effb9574c364279ded7d7cbd4e0331dc1fb647970f60c98bff0 gtk-4.18.5.tar.xz
+1dca0747e2f572354c0d47e443270d64f5855d9fba592621d570be5eed49213ce8303e7d028bbe4d493cceebea9b3c90d6dc4f0671b1cae153a15384aa35d63e vulkan-nullref.patch"