summaryrefslogtreecommitdiff
path: root/user/gtk4/APKBUILD
blob: 71c6b0a4275d7339a51567e60a23adc20949f047 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Contributor: Síle Ekaterin Liszka <sheila@vulpine.house>
# Maintainer: Sile Ekaterin Liszka <sheila@vulpine.house>
pkgname=gtk4
pkgver=4.8.3
pkgrel=0
pkgdesc="Version 4 of the GNOME graphics toolkit"
url="https://www.gtk.org"
arch="all"
options="!check"  # Requires X11
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
	libxcursor-dev libxi-dev libxinerama-dev libxkbcommon-dev libxrandr-dev
	meson ninja pango-dev>=1.50.0 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"
builddir="$srcdir/gtk-$pkgver"

build() {
	meson \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--buildtype=release \
		--wrap-mode=nofallback \
		-Dc_link_args='-lexecinfo' \
		-Dgtk_doc=true \
		-Dman-pages=true \
		-Ddemos=false \
		-Dbuild-examples=false \
		build
	ninja -C build
}

check() {
	ninja -C build test
}

package() {
	DESTDIR="$pkgdir" ninja -C build install
}


sha512sums="56be0f5ce85a9cbbda4a5de53baeeb6b8cc527a5d34723ae5548759ec7c28f03d204b6b6758dffed02a9e226f3bfcd1f15971105c2f2f7be7cef22538be27754  gtk-4.8.3.tar.xz"