[GH-ISSUE #1] Support for gitlab release URLs #1

Closed
opened 2026-03-01 09:03:48 -06:00 by GiteaMirror · 3 comments
Owner

Originally created by @Jaakkonen on GitHub (Jun 17, 2020).
Original GitHub issue: https://github.com/fosskers/cargo-aur/issues/1

Currently the PKGBUILD assumes that the assets are at <REPO>/releases/download/v<VERSION>/<NAME>-<VERSION>-x86_64.tar.gz.

However with Gitlab the assets are at <REPO>/-/archive/<TAG>/<ARTIFACT NAME>.

There could be a option to override these templates in the cmdline/environment variables.

Originally created by @Jaakkonen on GitHub (Jun 17, 2020). Original GitHub issue: https://github.com/fosskers/cargo-aur/issues/1 Currently the PKGBUILD assumes that the assets are at `<REPO>/releases/download/v<VERSION>/<NAME>-<VERSION>-x86_64.tar.gz`. However with Gitlab the assets are at `<REPO>/-/archive/<TAG>/<ARTIFACT NAME>`. There could be a option to override these templates in the cmdline/environment variables.
Author
Owner

@fosskers commented on GitHub (Jun 18, 2020):

Reasonable! Let me get on that.

@fosskers commented on GitHub (Jun 18, 2020): Reasonable! Let me get on that.
Author
Owner

@fosskers commented on GitHub (Jun 18, 2020):

The linked PR produces links like:

source=("https://gitlab.com/fosskers/cargo-aur/-/archive/v$pkgver/cargo-aur-$pkgver-x86_64.tar.gz")

Would that work for you? It now auto-detects which git host is set in the repository field of Cargo.toml, so no extra CLI flag was needed.

@fosskers commented on GitHub (Jun 18, 2020): The linked PR produces links like: ``` source=("https://gitlab.com/fosskers/cargo-aur/-/archive/v$pkgver/cargo-aur-$pkgver-x86_64.tar.gz") ``` Would that work for you? It now auto-detects which git host is set in the `repository` field of `Cargo.toml`, so no extra CLI flag was needed.
Author
Owner

@fosskers commented on GitHub (Jun 22, 2020):

Hi there, I'm going to go ahead with this so that I can add further improvements to the project. Let me know if it doesn't do what you were expecting, and I'll patch it again.

@fosskers commented on GitHub (Jun 22, 2020): Hi there, I'm going to go ahead with this so that I can add further improvements to the project. Let me know if it doesn't do what you were expecting, and I'll patch it again.
GiteaMirror changed title from Support for gitlab release URLs to [GH-ISSUE #1] Support for gitlab release URLs 2026-04-11 05:42:22 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/cargo-aur#1