This commit is contained in:
xiota 2024-08-07 14:36:27 +00:00
parent 148a981f6d
commit 6ad44744fe
3 changed files with 43 additions and 15 deletions

View file

@ -1,6 +1,6 @@
pkgbase = flutter-bin
pkgdesc = Cross platform widget toolkit for Dart (monolithic)
pkgver = 3.22.3
pkgver = 3.24.0
pkgrel = 1
url = https://github.com/flutter/flutter
install = flutter.install
@ -39,12 +39,12 @@ pkgbase = flutter-bin
conflicts = flutter-material-fonts
conflicts = flutter-sky-engine
conflicts = flutter-tool-developer
noextract = flutter-3.22.3.tar.xz
noextract = flutter-3.24.0.tar.xz
options = !emptydirs
options = !strip
options = !debug
source = flutter-3.22.3.tar.xz::https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_3.22.3-stable.tar.xz
sha256sums = 9c5f70ba118b9163552144901a2efd91d40b22a68a04e67271d6a5ad936e8368
source = flutter-3.24.0.tar.xz::https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_3.24.0-stable.tar.xz
sha256sums = d52a5d12f17d8bcf868d1ccc01fe0f7ffb05b53d9628aa21b07a18f9d33621f2
pkgname = flutter-bin
depends = clang

View file

@ -2,7 +2,7 @@
_pkgname="flutter"
pkgname="$_pkgname-bin"
pkgver=3.22.3
pkgver=3.24.0
pkgrel=1
pkgdesc="Cross platform widget toolkit for Dart (monolithic)"
arch=("x86_64")
@ -61,7 +61,7 @@ source=(
)
sha256sums=(
'9c5f70ba118b9163552144901a2efd91d40b22a68a04e67271d6a5ad936e8368'
'd52a5d12f17d8bcf868d1ccc01fe0f7ffb05b53d9628aa21b07a18f9d33621f2'
)
prepare() {

View file

@ -1,3 +1,26 @@
note() {
printf "${BLUE}==>${YELLOW} $1 ${WHITE}$2${ALL_OFF}\n"
}
msg1() {
printf "${BLUE}==>${WHITE} $1${ALL_OFF}\n"
}
msg2() {
printf " ${WHITE} $1${ALL_OFF}\n"
}
ALL_OFF="$(tput sgr0)"
BOLD="${ALL_OFF}$(tput bold)"
BLACK="${BOLD}$(tput setaf 0)"
RED="${BOLD}$(tput setaf 1)"
GREEN="${BOLD}$(tput setaf 2)"
YELLOW="${BOLD}$(tput setaf 3)"
BLUE="${BOLD}$(tput setaf 4)"
MAGENTA="${BOLD}$(tput setaf 5)"
CYAN="${BOLD}$(tput setaf 6)"
WHITE="${BOLD}$(tput setaf 7)"
_builders=(
builder
builduser
@ -26,15 +49,19 @@ post_install() {
fi
done
echo "Flutter requires write permission into its install directory."
echo "This package redirects writes to '~/.cache/flutter_local'."
echo "Users should clear the cache themselves after upgrades."
msg1 "Flutter requires write permission into its install directory."
msg2 "This package redirects writes to '~/.cache/flutter_*'."
msg2 "Users should unmount and clear the cache after upgrades."
echo
echo "Optionally, users may be given write permission to '/opt/flutter'"
echo "by adding them to the 'flutter' group:"
echo " sudo usermod -a -G flutter [username]"
msg2 " fusermount -uq ~/.cache/flutter_sdk"
msg2 " rm -rf ~/.cache/{flutter_sdk,flutter_local}"
echo
echo "Warning: '/opt/flutter' will be wiped on upgrade and uninstall."
msg1 "Optionally, users may be given write permission to '/opt/flutter'"
msg2 "by adding them to the 'flutter' group:"
echo
msg2 " sudo usermod -a -G flutter [username]"
echo
note 'Warning:' "'/opt/flutter' will be wiped on upgrade and uninstall."
}
post_upgrade() {
@ -66,6 +93,7 @@ pre_remove() {
post_remove() {
rm -rf opt/flutter
echo "If no longer needed, remove the 'flutter' group:"
echo " sudo groupdel flutter"
msg1 "If no longer needed, remove the 'flutter' group:"
echo
msg2 " sudo groupdel flutter"
}