10 May
2018
10 May
'18
2:20 p.m.
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?