aboutsummaryrefslogtreecommitdiffstats
path: root/community/gnome-builder/APKBUILD
blob: 6d3f75f9b83c5ccec035439416d84c2d0cbedee3 (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: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=gnome-builder
pkgver=3.36.1
pkgrel=0
pkgdesc="Develop software for GNOME"
url="https://wiki.gnome.org/Apps/Builder"
arch="all !s390x !mips !mips64"
license="GPL-3.0-or-later"
depends="devhelp flatpak-builder py3-lxml py3-gobject3"
makedepends="meson libdazzle-dev glib-dev gtk+3.0-dev gtksourceview4-dev
	json-glib-dev jsonrpc-glib-dev pango-dev libpeas-dev webkit2gtk-dev
	libxml2-dev libgit2-glib-dev template-glib-dev llvm-dev gspell-dev
	enchant2-dev devhelp-dev glade-dev pcre2-dev gtkmm3-dev
	vte3-dev vala gobject-introspection-dev ctags clang-dev flatpak-dev
	libexecinfo-dev libportal-dev"
checkdepends="appstream-glib desktop-file-utils xvfb-run"
subpackages="$pkgname-dev $pkgname-lang"
source="https://download.gnome.org/sources/gnome-builder/${pkgver%.*}/gnome-builder-$pkgver.tar.xz
	fix-musl.patch
	"

build() {
	export LIBS="$LIBS -lexecinfo"
	meson \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--buildtype=plain \
		-Dplugin_sysprof=false \
		. output
	ninja -C output
}

check() {
	# Increase the timeout, this can take pretty long, especially on armhf
	xvfb-run meson test -C output -t 10
}

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

sha512sums="284da6e5a9e766cb6f6122f1134c779cde8406b006728ae1fff3518020ef4b96239aa5037cd2d35cfe4728ea088d61c4eeabc39ea753a16208fdaba7b04e63c2  gnome-builder-3.36.1.tar.xz
ef7f75d316558e59ecb07b4fc8ef92abc51d78d6983021588546fadb57f90d971561be1f2491a2750e61e07c6d6200f3c199dab3db1060a2217ccbdb2505239e  fix-musl.patch"