aboutsummaryrefslogtreecommitdiffstats
path: root/community/gtkmm4/APKBUILD
blob: a97e1ce2cb00569656d78a0c3c65b7b72439dcbc (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
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=gtkmm4
pkgver=4.0.1
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="5b9f9f32fe85ee7a281c9d3d3b266b1265924926058d778f48302808812cad7047c09440c317497fa0069816984d3556868a703a5488e0bfd8cd26fc64afcb1b  gtkmm-4.0.1.tar.xz"