summaryrefslogtreecommitdiff
path: root/community/glade/APKBUILD
blob: 721b91538e644428dbca9e4440b792b83ddf9109 (plain)
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=glade
pkgver=3.40.0
pkgrel=0
pkgdesc="User Interface Designer for GTK+ and GNOME"
url="https://glade.gnome.org/"
arch="all"
license="GPL-2.0-or-later"
makedepends="
	gobject-introspection-dev
	gtk+3.0-dev
	gtk-doc
	intltool
	itstool
	libxml2-dev
	meson
	py3-gobject3-dev
	python3-dev
	webkit2gtk-dev
	"
checkdepends="
	adwaita-icon-theme
	dbus
	ibus
	xvfb-run
	"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="https://download.gnome.org/sources/glade/${pkgver%.*}/glade-$pkgver.tar.xz"

case "$CARCH" in
s390x|riscv64)
	;;
*)
	makedepends="$makedepends gjs-dev"
	;;
esac

if [ "$CARCH" = "s390x" ]; then
	# no adwaita-icon-theme
	options="$options !check"
fi

build() {
	abuild-meson \
		-Dgladeui=true \
		. output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

check() {
	dbus-run-session -- \
		xvfb-run -a \
		meson test -t 6 --no-rebuild --print-errorlogs -C output
}

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

dev() {
	default_dev

	mkdir -p "$pkgdir"/usr/share/glade
	mv "$subpkgdir"/usr/share/glade/catalogs "$pkgdir"/usr/share/glade
	mv "$subpkgdir"/usr/lib/glade "$pkgdir"/usr/lib/glade
}

sha512sums="
6b018f882e9d155a4b2256c0b4c72743f971c8d730a53f16faa240d01e14051f5b6ce04e355dcc78e1679579fb091facaa06acdda6297c5b8efc642c42bb7b4e  glade-3.40.0.tar.xz
"