aboutsummaryrefslogtreecommitdiffstats
path: root/community/gtkmm4/APKBUILD
blob: 517fa9aa4a611c16c8b4750d3f378bb8e6f9b986 (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
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=gtkmm4
pkgver=4.0.2
pkgrel=0
pkgdesc="C++ wrappers for GTK 4"
url="https://www.gtkmm.org/"
# s390x, mips64: gtk4.0 not available
arch="all !s390x !mips64"
license="LGPL-2.1-or-later"
makedepends="
	meson
	gtk4.0-dev
	cairomm1.16-dev
	pangomm2.48-dev
	gdk-pixbuf-dev
	atkmm2.36-dev
	glibmm2.68-dev
	doxygen
	graphviz
	m4
	perl
	"
checkdepends="xvfb-run"
subpackages="$pkgname-dev $pkgname-doc"
source="https://download.gnome.org/sources/gtkmm/${pkgver%.*}/gtkmm-$pkgver.tar.xz"
builddir="$srcdir/gtkmm-$pkgver"

build() {
	abuild-meson \
		-Dbuild-demos=false \
		-Dbuild-tests=true \
		-Dbuild-documentation=true \
		. output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

check() {
	xvfb-run meson test --no-rebuild -v -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
9de884f0491e0e7d671270d2d4cf330a8e48913b9538934e315ddfbccfad4e062ee732083609e66d9b30380f00c73895fdf44fc0211dbca6bde084d16a037fd8  gtkmm-4.0.2.tar.xz
"