| 1 | # Contributor: Newbyte <[email protected]> |
| 2 | maintainer="team/gnome <[email protected]>" |
| 3 | pkgname=blueprint-compiler |
| 4 | pkgver=0.22.2 |
| 5 | pkgrel=0 |
| 6 | pkgdesc="Markup language for GTK user interfaces" |
| 7 | url="https://gnome.pages.gitlab.gnome.org/blueprint-compiler/" |
| 8 | arch="noarch" |
| 9 | license="LGPL-3.0-or-later" |
| 10 | depends=" |
| 11 | gobject-introspection-dev |
| 12 | gtk4.0 |
| 13 | libadwaita |
| 14 | python3 |
| 15 | py3-gobject3 |
| 16 | " |
| 17 | depends_dev="$pkgname=$pkgver-r$pkgrel" |
| 18 | makedepends="meson" |
| 19 | checkdepends="cage-run xwayland" |
| 20 | subpackages="$pkgname-dev $pkgname-pyc" |
| 21 | source="https://download.gnome.org/sources/blueprint-compiler/${pkgver%.*}/blueprint-compiler-$pkgver.tar.xz" |
| 22 | |
| 23 | build() { |
| 24 | abuild-meson . output |
| 25 | meson compile -C output |
| 26 | } |
| 27 | |
| 28 | check() { |
| 29 | # riscv64 is slow |
| 30 | cage-run meson test -t 10 --print-errorlogs -C output |
| 31 | } |
| 32 | |
| 33 | package() { |
| 34 | DESTDIR="$pkgdir" meson install --no-rebuild -C output |
| 35 | python3 -m compileall -fq "$pkgdir"/usr/lib/python* |
| 36 | } |
| 37 | |
| 38 | sha512sums=" |
| 39 | bdc380a3d77b33a71139ee4f0da97effa5c95876251563a904e25762f93b592393fdb9a6c99b294aea8a9a93ba411d17491da95427020860dfd8a696402c0b80 blueprint-compiler-0.22.2.tar.xz |
| 40 | " |