You are not logged in.

#1 2023-05-15 08:50:07

ZachAR3
Member
Registered: 2023-05-15
Posts: 4

Updating pkgver inside of PKGBUILD

Greetings, I am new to the creation and rules about PKGBUILDS for posting on the AUR and was wondering if the pkgver has to be a constant, or if its allowed to be auto updated as I do in my script. I didn't see anything about this particular aspect in the guidelines. If there are any other issues as well please let me know!
Pertinent line:

pkgver=$(curl -s "https://api.github.com/repos/pineappleEA/pineapple-src/releases/latest" | grep "browser_download_url" | grep ".AppImage" | sed -n 's/.*EA-\([0-9]*\).*/\1/p')

PKGBUILD

Offline

#2 2023-05-15 09:37:14

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: Updating pkgver inside of PKGBUILD

It is generally okay to have the pkgver calculated. Makepkg supports a seperate pkgver function for doing this, and all VCS-packages ("*-git", "*.fossil", "*.svn") use it. If it makes sense for an appimage is maybe debatable (I do not use appimages).

Offline

#3 2023-05-15 10:03:33

ZachAR3
Member
Registered: 2023-05-15
Posts: 4

Re: Updating pkgver inside of PKGBUILD

Ah gotcha, so separate as in what I already have down below or is their an actual one dedicated purely for VCS esque packages? And I primarily chose this as the package receives up to multiple updates per day meaning it would always be out of date if I had to do it manually.

Offline

#4 2023-05-15 10:18:05

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: Updating pkgver inside of PKGBUILD

This seems to be a valid reason.

Offline

#5 2023-05-15 13:54:42

ZachAR3
Member
Registered: 2023-05-15
Posts: 4

Re: Updating pkgver inside of PKGBUILD

Ok thanks!

Offline

Board footer

Powered by FluxBB