summaryrefslogtreecommitdiff
path: root/community/gedit/APKBUILD
blob: 0aeb67a4fe575bffd070e53a569fe017986fa294 (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
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Ralf Rachinger <alpine@ralfrachinger.de>
pkgname=gedit
pkgver=44.2
pkgrel=1
pkgdesc="gedit is the GNOME text editor"
url="https://wiki.gnome.org/Apps/Gedit"
arch="all !s390x"
license="GPL-2.0-only"
depends_dev="gedit=$pkgver-r$pkgrel"
makedepends="
	glib-dev
	gobject-introspection-dev
	gspell-dev
	gtk+3.0-dev
	gtk-doc
	gtksourceview4-dev
	itstool
	libpeas-dev
	libsoup-dev
	libx11-dev
	libxml2-dev
	meson
	perl
	tepl-dev
	vala
	"
checkdepends="appstream-glib desktop-file-utils"
depends="gsettings-desktop-schemas"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="https://download.gnome.org/sources/gedit/${pkgver%.*}/gedit-$pkgver.tar.xz"

prepare() {
	default_prepare

	case $CARCH in
	# sigsegv
	s390x) sed -i '/test-open-links/d' plugins/openlinks/unit-tests/meson.build ;;
	esac
}

build() {
	abuild-meson . output
	meson compile -C output
}

check() {
	meson test --no-rebuild --print-errorlogs -C output
}

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

sha512sums="
c9dd412a16d7d0ba17214164017948bd1184ee5f9c44475e9e02880c0597b2fd9840f9488df7262cb413baedf5e16ce49dd32410b02ed0f53cf4bc94d3e3a4c7  gedit-44.2.tar.xz
"