blob: dc6497a9535fd3c70e052774eb7620fff69a9ba5 (
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
|
# Contributor:Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=gtksourceview4
pkgver=4.6.0
pkgrel=0
pkgdesc="A text widget adding syntax highlighting and more to GNOME"
url="https://wiki.gnome.org/Projects/GtkSourceView"
arch="all !s390x" # Limited by ibus -> librsvg
license="GPL-2.0-or-later"
replaces="gtksourceview"
depends_dev="gtk+3.0-dev libxml2-dev"
makedepends="$depends_dev gobject-introspection-dev vala libxslt meson glade-dev"
checkdepends="xvfb-run ibus dbus"
subpackages="$pkgname-dev $pkgname-lang"
source="https://download.gnome.org/sources/gtksourceview/${pkgver%.*}/gtksourceview-$pkgver.tar.xz
skip-test.patch
"
builddir="$srcdir/gtksourceview-$pkgver"
build() {
meson \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--localstatedir=/var \
--buildtype=plain \
-Dglade_catalog=true \
. output
ninja -C output
}
check() {
xvfb-run ninja -C output test
}
package() {
DESTDIR="$pkgdir" ninja -C output install
}
dev() {
default_dev
mkdir -p "$subpkgdir"/usr/share
mv "$pkgdir"/usr/share/glade/catalogs "$subpkgdir"/usr/share/
}
sha512sums="e7a873dbd452f2077afbc6e0142ce17172a8d33220ea1181e69ed8a5cf94e42e2df741e5a0636731fab6984e84ea2347dca34b5889f3808d29259e13527fa00c gtksourceview-4.6.0.tar.xz
c765c7c77a94007e95c050c05ef0283b2cdcd5751274924ea08a02ea2507061677d7f286c3e98d6b91f3603a06364d1ea43491e77e2e086e05c841218923e771 skip-test.patch"
|