[aur-general] Sourcing GitHub release tarballs without filename::url (was: Re: TU Application: Daniel M. Capella)

Daniel M. Capella polyzen at archlinux.org
Wed Jan 2 20:51:45 UTC 2019


>>> - The following can be used for GitHub releases (where $url is eg.
>>>   <https://github.com/LegNeato/asciinema-rs>):
>>>
>>>   - Before:
>>> `source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")`
>>>   - After: `source=("$url/archive/v$pkgver/$pkgname-v$pkgver.tar.gz")`
>>
>>
>> Correction: $pkgname in the after line is only correct if it matches the
>> project name, tense included -- assuming you like it to match the name of
>> the downloaded tarball. Same goes for the version (eg. the "v" some
>> projects use). For ease of use, perhaps best to keep this out of the
>> guidelines.
>>
>
>Further correction: With the after line, the "v" is always stripped with
>the downloaded tarball. That would make this example:
>`source=("$url/archive/v$pkgver/$pkgname-$pkgver.tar.gz")`

Update(Correction?): You can put whatever you want between the last "/"
and ".tar.gz", and it will be named that.

--
Best,
polyzen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: signature
URL: <https://lists.archlinux.org/pipermail/aur-general/attachments/20190102/99c4b90a/attachment-0001.asc>


More information about the aur-general mailing list