You are not logged in.

#1 2024-03-10 06:14:55

interaccoonale
Member
Registered: 2023-11-29
Posts: 2

[SOLVED] Can I submit an empty package that providers "flutter".

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

#2 2024-03-10 08:57:44

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 71,682

Re: [SOLVED] Can I submit an empty package that providers "flutter".

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 wink

Offline

#3 2024-03-10 08:59:01

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,576

Re: [SOLVED] Can I submit an empty package that providers "flutter".

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

#4 2024-03-10 09:40:32

interaccoonale
Member
Registered: 2023-11-29
Posts: 2

Re: [SOLVED] Can I submit an empty package that providers "flutter".

Lone_Wolf wrote:

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

Board footer

Powered by FluxBB