You are not logged in.
Hello everyone. Recently I noticed that install flutter apps from aur will install [flutter](https://aur.archlinux.org/packages/flutter) as a build dependency, while some users may have flutter manually installed in their home dir (for example, myself), which is the second method recommended in [flutter docs](https://docs.flutter.dev/get-started/install/linux). Is it allowed to submit an empty package that provides flutter for users like me?
I have drafted a PKGBUILD file:
# Maintainer: Interaccoonale <xzzzf.dsx@gmail.com>
pkgname=flutter-empty
pkgver=3.19.2
pkgrel=1
pkgdesc='An empty package for users who have flutter SDK installed in their home dir, to satisfy the build dependencies of flutter applications.'
arch=('x86_64')
url="https://flutter.dev"
license=('MIT')
provides=("flutter")
depends=()
makedepends=()
source=()
sha256sums=()
package() {
read -p "This is an empty package for users who have flutter SDK installed in their home dir, to satisfy the build dependencies of flutter applications. Make sure you have flutter installed manually, and has added it to your PATH. [y/n] " -r
echo # (optional) move to a new line
if [[ ! $REPLY =~ ^[Yy]$ ]]
then
[[ "$0" = "$BASH_SOURCE" ]] && exit 1 || return 1
fi
}Can I submit it to AUR?
Last edited by interaccoonale (2024-03-10 09:48:18)
Offline
https://aur.archlinux.org/packages?O=0&K=dummy
Make it "flutter-dummy"
Not sure about the interactive package() failure, afaict it's more common to have warning messages/reminders in the prepare function.
Also it assumes bash, people might run other interactive shells.
On a formal formal note, please use [code][/code] tags, bbs is older than markdown and you combined ![]()
Offline
Packages should not require any user action .
replace the read -p with echo or printf in package() and you can use it locally .
Some empty packages similar to this have been in AUR usually because of a temporary need.
What does your user home installed flutter offer that the aur flutter package doesn't ?
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline
Packages should not require any user action .
replace the read -p with echo or printf in package() and you can use it locally .
Some empty packages similar to this have been in AUR usually because of a temporary need.
What does your user home installed flutter offer that the aur flutter package doesn't ?
The flutter SDK from the official website is actually a git repository, so users can use git to switch between stable, beta and dev versions (actually branches).
Also, I think there might be some users who may have installed it according to the official documentation when they just started learning flutter programming.
Last edited by interaccoonale (2024-03-10 09:45:20)
Offline