main/py3-gobject3: use abuild-meson & meson compile/test/install

This commit is contained in:
Rasmus Thomsen 2020-09-01 00:18:59 +02:00
parent 45efca103e
commit cc9e6eb625
No known key found for this signature in database
GPG Key ID: 1115241518154EA6

View File

@ -20,21 +20,16 @@ builddir="$srcdir"/pygobject-$pkgver
replaces="py-gobject3" # Backwards compatibility
provides="py-gobject3=$pkgver-r$pkgrel" # Backwards compatibility
build() {
meson \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--localstatedir=/var \
--buildtype=plain \
build() {
abuild-meson \
-Dpython=python3 \
. output
ninja -C output
meson compile ${JOBS:+-j ${JOBS}} -C output
}
check() {
PYGI_TEST_VERBOSE="1" xvfb-run ninja -C output test
PYGI_TEST_VERBOSE="1" xvfb-run meson test --no-rebuild -v -C output
}
package() {