There is an AUR package that errors when I update it, and it has been like that for a while so I wondered if I could fix it myself?

The Package is here https://aur.archlinux.org/packages/filebrowser-bin

You can see my comment explaining the error under the username “mub”.

  • Axum@lemmy.blahaj.zone
    link
    fedilink
    arrow-up
    15
    arrow-down
    4
    ·
    edit-2
    17 days ago

    Y’all act like you’ve never used makepkg or opened up a pkgbuild in a text editor smh.

    Aur helpers have spoiled y’all

  • asudox@programming.dev
    link
    fedilink
    arrow-up
    6
    ·
    edit-2
    17 days ago

    The URL leads to a 404 page. You’re including the dot at the end in it.

    As for your question, it has something to do with the PKGBUILD file. Edit it to fix the error and then build it locally with pacman.

    If you are talking about wanting to maintain the AUR package, make an orphanage request and assign yourself as the maintainer.

      • mub@lemmy.mlOP
        link
        fedilink
        arrow-up
        4
        ·
        17 days ago

        I’m probably just being impatient. I’ll do the local build thing with pacman for now, but my curiosity is pushing me to consider the orphan request option. I’ll give it a couple more weeks though.

        • wiccan2@lemmy.world
          link
          fedilink
          arrow-up
          3
          ·
          17 days ago

          On the couple of AUR packages I maintain neglect I have been approached via email to add people as co-maintainers. I don’t always have the time to keep the packages up to date so I was happy to let someone else help out.

          Might be something worth looking into rather than an orphan request.

  • SunRed@discuss.tchncs.de
    link
    fedilink
    arrow-up
    6
    ·
    edit-2
    17 days ago

    Regarding your question, you can just clone the package’s git URL or download the PKGBUILD file directly, make your edit and run makepkg or makepkg -sirc as the wiki suggests to produce the package and install it.
    You can also install the package tar with pacman -U <file>.

    Relevant Arch wiki pages:
    https://wiki.archlinux.org/title/Arch_build_system
    https://wiki.archlinux.org/title/Arch_User_Repository

    But looking at the comments it seems you are using an AUR helper that has a cache you might want to clear as the git repo for that package has an unstaged change for the license file for some reason (or you reset that file so git doesn’t complain when pulling).

    Edit: I see you figured it out already.

  • encrust9870@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    ·
    17 days ago

    Did you change something in the license file yourself? Check your yay cache and perhaps delete the cached files for this package.

    While there seem to be other issues with the PKGBUILD (typo for example), this seems like a problem with your local setup and not the package. Note that using AUR helpers like yay are not supported, so check if the package builds correctly manually.

  • Daemon Silverstein@thelemmy.club
    link
    fedilink
    English
    arrow-up
    1
    ·
    9 days ago

    Aside from downloading and changing PKGBUILD directly, there is an AUR helper named Paru that shows the PKGBUILD contents before using it to build the package. I’m not sure, but seems like it opens inside a terminal text editor, so you can make changes before building.

  • InFerNo@lemmy.ml
    link
    fedilink
    arrow-up
    1
    ·
    9 days ago

    How are you installing this package?

    I download the PKGBUILD and run makepkg on it. In this case I would edit the PKGBUILD and run makepkg again.

    Seems trivial, but I understand there’s an error in the PKGBUILD that should be fixed on the AUR so others don’t have to manually fix it, too.