On 10 May 2018 at 15:20, Jeremy Audet <ichimonji10@gmail.com> wrote:
Adding a pkgver() to Discord in a clean way is proving to be quite annoying.
Adding this to the source=() 'https://discordapp.com/api/download/canary?platform=linux&format=tar.gz' causes makepkg to download a file named 'canary?platform=linux&format=tar.gz' even though the download output from curl correctly manages the redirect and displays "Downloading discord-canary-0.0.49.tar.gz"
From PKGBUILD(5):
It is also possible to change the name of the downloaded file, which is helpful with weird URLs and for handling multiple source files with the same name. The syntax is: source=('filename::url').
Possibly helpful?
The pkgver() function is ran after the sources are downloaded. So doing source=('$pkgname-$pkgver::url') will not work. Thanks though.