summaryrefslogtreecommitdiff
path: root/repo/graphene/graphene.xibuild
blob: edc040ef5340fac32f6bbf526fd351301d92b0f2 (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
#!/bin/sh

NAME="graphene"
DESC="A thin layer of graphic data types"

MAKEDEPS="meson glib gobject-introspection"

PKG_VER=1.10.8
SOURCE="https://github.com/ebassi/graphene/archive/$PKG_VER/graphene-$PKG_VER.tar.gz"

ADDITIONAL="
0001-meson-don-t-install-introspection-file-with-installe.patch
"

prepare () {
    apply_patches
}

build() {
	meson --prefix=/usr \
		-Darm_neon=true \
		-Dinstalled_tests=false \
		. output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

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

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