diff --git a/anda/tools/blueprint-compiler/anda.hcl b/anda/tools/blueprint-compiler/anda.hcl new file mode 100644 index 0000000000..9c2d16591f --- /dev/null +++ b/anda/tools/blueprint-compiler/anda.hcl @@ -0,0 +1,6 @@ +project pkg { + arches = ["x86_64"] + rpm { + spec = "terra-blueprint-compiler.spec" + } +} diff --git a/anda/tools/blueprint-compiler/terra-blueprint-compiler.spec b/anda/tools/blueprint-compiler/terra-blueprint-compiler.spec new file mode 100644 index 0000000000..3fff78c694 --- /dev/null +++ b/anda/tools/blueprint-compiler/terra-blueprint-compiler.spec @@ -0,0 +1,44 @@ +Name: terra-blueprint-compiler +Version: 0.8.0 +Release: 1%?dist +License: LGPL-3.0-or-later +Summary: Markup language for GTK user interfaces +URL: https://jwestman.pages.gitlab.gnome.org/blueprint-compiler/ +Source0: https://gitlab.gnome.org/jwestman/blueprint-compiler/-/archive/v%version/blueprint-compiler-v%version.tar.gz +BuildArch: noarch +BuildRequires: meson gtk4-devel python3-devel python3-gobject-devel +Requires: python3-gobject-devel + +%description +GtkBuilder XML format is quite verbose, and many app developers don't like +using WYSIWYG editors for creating UIs. Blueprint files are intended to be a +concise, easy-to-read format that makes it easier to create and edit GTK UIs. +Internally, it compiles to GtkBuilder XML as part of an app's build system. It +adds no new features, just makes the features that exist more accessible. +Another goal is to have excellent developer tooling--including a language +server--so that less knowledge of the format is required. Hopefully this will +increase adoption of cool advanced features like GtkExpression. + +%prep +%autosetup -n blueprint-compiler-v%version + +%build +%meson +%meson_build + +%install +%meson_install + +#check +#meson_test + +%files +%doc README.md docs/*.rst +%license COPYING +%_bindir/blueprint-compiler +%python3_sitelib/blueprintcompiler +%_datadir/pkgconfig/blueprint-compiler.pc + +%changelog +* Tue Jun 13 2023 windowsboy111 - 0.8.0-1 +- Initial package diff --git a/anda/tools/blueprint-compiler/update.rhai b/anda/tools/blueprint-compiler/update.rhai new file mode 100644 index 0000000000..b5fcd944e6 --- /dev/null +++ b/anda/tools/blueprint-compiler/update.rhai @@ -0,0 +1,2 @@ +let txt = get("https://gitlab.gnome.org/api/v4/projects/17669/releases/"); +rpm.version(txt.json_arr()[0].tag_name);