community/colord-gtk: use abuild-meson & meson compile/test/install
Changes
1 files changed · +4 −6
| File | Status | Add | Del | Content |
|---|---|---|---|---|
| community/colord-gtk/APKBUILD | modified | +4 | −6 | View file |
community/colord-gtk/APKBUILD
View filediff --git a/community/colord-gtk/APKBUILD b/community/colord-gtk/APKBUILD
index 1dd3eee..c1dea14 100644
--- a/community/colord-gtk/APKBUILD
+++ b/community/colord-gtk/APKBUILD
@@ -14,24 +14,22 @@ subpackages="$pkgname-dev"
source="https://www.freedesktop.org/software/colord/releases/colord-gtk-$pkgver.tar.xz"
build() {
- meson \
- --prefix=/usr \
- --buildtype=plain \
+ abuild-meson \
-Dgtk2=false \
-Dvapi=true \
-Dtests=true \
-Dman=false \
-Ddocs=false \
. output
- ninja -C output
+ meson compile ${JOBS:+-j ${JOBS}} -C output
}
check() {
- xvfb-run ninja -C output test
+ xvfb-run meson test --no-rebuild -v -C output
}
package() {
- DESTDIR="$pkgdir" ninja -C output install
+ DESTDIR="$pkgdir" meson install --no-rebuild -C output
}
sha512sums="797eebfd4451fcae4cf70835f5de3d9bdc9e8401ddb82a2fef2310002f28bf523b599c587ff35eb89ceff38a245a6311129ad90b107f837ac4f42f268c9aad97 colord-gtk-0.2.0.tar.xz"