alien_build_plugin_download_gitlab: new perl module recipe

This commit is contained in:
Joachim Mairböck
2024-12-29 16:31:11 +01:00
parent f2d9a43622
commit e66d69184a

View File

@@ -0,0 +1,55 @@
SUMMARY="Alien::Build plugin to download from GitLab"
DESCRIPTION="This plugin is designed for downloading assets from a GitLab instance."
HOMEPAGE="https://metacpan.org/pod/Alien::Build::Plugin::Download::GitLab"
COPYRIGHT="2022 by Graham Ollis"
LICENSE="Artistic"
REVISION="1"
SOURCE_URI="https://cpan.metacpan.org/authors/id/P/PL/PLICEASE/Alien-Build-Plugin-Download-GitLab-$portVersion.tar.gz"
CHECKSUM_SHA256="c1f089c8ea152a789909d48a83dbfcf2626f773daf30431c8622582b26aba902"
SOURCE_DIR="Alien-Build-Plugin-Download-GitLab-$portVersion"
ARCHITECTURES="any"
PROVIDES="
alien_build_plugin_download_gitlab = $portVersion
"
REQUIRES="
haiku
alien_build
uri
vendor_perl
"
BUILD_REQUIRES="
haiku_devel
"
BUILD_PREREQUIRES="
cmd:make
cmd:perl
"
TEST_REQUIRES="
alien_build
uri
"
BUILD()
{
perl Makefile.PL PREFIX=$prefix
make
}
INSTALL()
{
make pure_install
# remove architecture-specific files
cd $prefix
rm -r $(perl -V:vendorarch | cut -d\' -f2 | cut -d/ -f5-)
# cut extracts the quoted string and strips the prefix (which is perl's and not ours)
}
TEST()
{
make test
}