Alien::Build::Plugin::Download::GitLab(3pm)

Alien::Build::Plugin::Download::GitLab3pm

Alien::build plugin to download from gitlab

Usage

 use alienfile;
 
 plugin 'Download::GitLab' => (
   gitlab_user    => 'plicease',
   gitlab_project => 'dontpanic',
 );

Version

version 0.01

Overview

This plugin is designed for downloading assets from a GitLab instance.

Properties

gitlab_host

The host to fetch from <https://gitlab.com> by default.

gitlab_user

The user to fetch from.

gitlab_project

The project to fetch from.

type

The asset type to fetch. This must be one of "source" or "link".

format

The expected format of the asset. This should be one that Alien::Build::Plugin::Extract::Negotiate understands. The default is "tar.gz".

version_from

Where to compute the version from. This should be one of "tag_name" or "name". The default is "tag_name".

convert_version

This is an optional code reference, which can be used to modify the version. For example, if tags have a "v" prefix you could remove it like so:

 plugin 'Download::GitLab' => (
   gitlab_user     => 'plicease',
   gitlab_project  => 'dontpanic',
   convert_version => sub {
     my $version = shift;
     $version =~ s/^v//;
     return $version;
   },
 );

link_name

For "link" types, this is a regular expression that filters the asset filenames. For example, if there are multiple archive formats provided, you can get just the gzip'd tarball by setting this to "qr/\.tar\.gz$/".

Author

Graham Ollis <[email protected]>

From perl-alien-build-plugin-download-gitlab 0.01-7 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.