From dff4fbb2501f7d11ebcd52412535d8ff14db79c0 Mon Sep 17 00:00:00 2001 From: madomado Date: Sun, 29 Oct 2023 16:26:03 +0800 Subject: [PATCH] add: flutter (#746) * add: flutter * Update flutter.spec Signed-off-by: madomado * Update flutter.spec Signed-off-by: madomado * mkdir Signed-off-by: madomado --------- Signed-off-by: madomado --- anda/apps/flutter/anda.hcl | 5 +++++ anda/apps/flutter/flutter.spec | 30 ++++++++++++++++++++++++++++++ anda/apps/flutter/update.rhai | 2 ++ 3 files changed, 37 insertions(+) create mode 100644 anda/apps/flutter/anda.hcl create mode 100644 anda/apps/flutter/flutter.spec create mode 100644 anda/apps/flutter/update.rhai diff --git a/anda/apps/flutter/anda.hcl b/anda/apps/flutter/anda.hcl new file mode 100644 index 0000000000..22fa8d01cb --- /dev/null +++ b/anda/apps/flutter/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "flutter.spec" + } +} diff --git a/anda/apps/flutter/flutter.spec b/anda/apps/flutter/flutter.spec new file mode 100644 index 0000000000..296e07bd6c --- /dev/null +++ b/anda/apps/flutter/flutter.spec @@ -0,0 +1,30 @@ +Name: flutter +Version: 3.13.8 +Release: 1%?dist +Summary: SDK for crafting beautiful, fast user experiences from a single codebase +License: BSD-3-Clause +URL: https://flutter.dev +Source0: https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_%version-stable.tar.xz +Requires: bash curl git file which zip xz-utils +Recommends: mesa-libGLU + +%description +Flutter transforms the app development process. Build, test, and deploy +beautiful mobile, web, desktop, and embedded apps from a single codebase. + +%prep +tar xf %SOURCE0 + +%build + +%install +mkdir -p %buildroot%_datadir %buildroot%_bindir +mv %name/ %buildroot%_datadir/ +ln -s %_datadir/%name/bin/%name %buildroot%_bindir/%name + +%files +%_bindir/%name +%_datadir/%name + +%changelog +%autochangelog diff --git a/anda/apps/flutter/update.rhai b/anda/apps/flutter/update.rhai new file mode 100644 index 0000000000..103ad474f3 --- /dev/null +++ b/anda/apps/flutter/update.rhai @@ -0,0 +1,2 @@ +let obj = get("https://storage.googleapis.com/flutter_infra_release/releases/releases_linux.json").json(); +rpm.version(obj.releases[0].version);