From e66d69184a684f8fda8d74f2a9b7983a092ceb0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Mairb=C3=B6ck?= Date: Sun, 29 Dec 2024 16:31:11 +0100 Subject: [PATCH] alien_build_plugin_download_gitlab: new perl module recipe --- ...n_build_plugin_download_gitlab-0.01.recipe | 55 +++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 dev-perl/alien_build_plugin_download_gitlab/alien_build_plugin_download_gitlab-0.01.recipe diff --git a/dev-perl/alien_build_plugin_download_gitlab/alien_build_plugin_download_gitlab-0.01.recipe b/dev-perl/alien_build_plugin_download_gitlab/alien_build_plugin_download_gitlab-0.01.recipe new file mode 100644 index 000000000..c5308073e --- /dev/null +++ b/dev-perl/alien_build_plugin_download_gitlab/alien_build_plugin_download_gitlab-0.01.recipe @@ -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 +}