In China, storage.googleapis.com
maybe not available, according to the official document Using Flutter in China, I had to modify the PKGBUILD to do that:
diff --git a/PKGBUILD b/PKGBUILD
index fca6c4f..8b0d856 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -36,8 +36,15 @@ optdepends=("android-sdk: develop for Android devices"
backup=("opt/${pkgname}/packages/${pkgname}_test/pubspec.yaml" "opt/${pkgname}/packages/${pkgname}/pubspec.yaml")
options=("!emptydirs")
install="${pkgname}.install"
+
+baseurl="https://storage.googleapis.com"
+if [[ -v FLUTTER_STORAGE_BASE_URL ]]; then
+ baseurl=${FLUTTER_STORAGE_BASE_URL}
+fi
+
+
source=(
- "${pkgname}-${pkgver}.tar.xz::https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/${pkgname}_linux_${pkgver/.hotfix/+hotfix}-stable.tar.xz"
+ "${pkgname}-${pkgver}.tar.xz::${baseurl}/flutter_infra_release/releases/stable/linux/${pkgname}_linux_${pkgver/.hotfix/+hotfix}-stable.tar.xz"
"${pkgname}.sh"
"${pkgname}.csh"
)
Pinned Comments
PolarianDev commented on 2023-06-02 11:05 (UTC)
I have added flutter to my unofficial repository, due to it being a dependency of a package I maintain
saber
.Feel free to pull it from my repository, check out PolarRepo
cfujino commented on 2021-11-12 20:52 (UTC)
Yes, the reason is that breaking changes to the Dart SDK are landed with the corresponding fixes to the Flutter SDK. Also, you cannot "remove it" without significantly altering the Flutter tooling. The Flutter CLI tool ensures that the pinned version of the Dart SDK is present in its binary cache.
If you want to use a version of Flutter without depending on Flutter's pinned version of the Dart SDK, you would need to maintain a separate fork of the Flutter SDK, that tracks the breaking changes of the Arch Dart package, and has an updated Flutter tool that doesn't assume it controls the Dart installation.
frealgagu commented on 2020-12-05 22:36 (UTC)
I maintain the latest built package at:
https://github.com/frealgagu/archlinux.flutter/releases/