Skip to content

Commit

Permalink
add: flutter (#746)
Browse files Browse the repository at this point in the history
* add: flutter

* Update flutter.spec

Signed-off-by: madomado <[email protected]>

* Update flutter.spec

Signed-off-by: madomado <[email protected]>

* mkdir

Signed-off-by: madomado <[email protected]>

---------

Signed-off-by: madomado <[email protected]>
  • Loading branch information
madonuko authored Oct 29, 2023
1 parent f0671c4 commit dff4fbb
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 0 deletions.
5 changes: 5 additions & 0 deletions anda/apps/flutter/anda.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
project pkg {
rpm {
spec = "flutter.spec"
}
}
30 changes: 30 additions & 0 deletions anda/apps/flutter/flutter.spec
Original file line number Diff line number Diff line change
@@ -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
2 changes: 2 additions & 0 deletions anda/apps/flutter/update.rhai
Original file line number Diff line number Diff line change
@@ -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);

0 comments on commit dff4fbb

Please sign in to comment.