From 53fcc3bb3426f41e9102d57f64160b56436bf45e Mon Sep 17 00:00:00 2001 From: ryoskzypu Date: Fri, 20 Feb 2026 00:19:26 -0300 Subject: [PATCH] Add Perl::Critic::Community v1.0.4 --- .SRCINFO | 25 ++++++++++++++++++++ .nvchecker.toml | 3 +++ LICENSE | 12 ++++++++++ LICENSES/0BSD.txt | 1 + PKGBUILD | 59 +++++++++++++++++++++++++++++++++++++++++++++++ REUSE.toml | 25 ++++++++++++++++++++ 6 files changed, 125 insertions(+) create mode 100644 .SRCINFO create mode 100644 .nvchecker.toml create mode 100644 LICENSE create mode 120000 LICENSES/0BSD.txt create mode 100644 PKGBUILD create mode 100644 REUSE.toml diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000000000..34fe2e434a023 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,25 @@ +pkgbase = perl-perl-critic-community + pkgdesc = Community-inspired Perl::Critic policies + pkgver = 1.04 + pkgrel = 1 + url = https://metacpan.org/dist/Perl-Critic-Community + arch = any + license = Artistic-2.0 + checkdepends = perl-module-metadata + checkdepends = perl-pathtools + checkdepends = perl-test-simple + makedepends = perl-module-build-tiny>=0.034 + depends = perl-carp + depends = perl-exporter + depends = perl-path-tiny>=0.101 + depends = perl-perl-critic-policy-plicease-prohibitarrayassignaref>=100.00 + depends = perl-perl-critic-policy-variables-prohibitlooponhash>=0.005 + depends = perl-perl-critic>=1.126 + depends = perl-ppi>=1.254 + depends = perl-scalar-list-utils>=1.33 + depends = perl>=5.10.1 + options = !emptydirs + source = https://cpan.metacpan.org/authors/id/D/DB/DBOOK/Perl-Critic-Community-v1.0.4.tar.gz + sha256sums = 3b31624ea0cf4392b8f4397a529515248814a2166697f1a453d58ab6f112d209 + +pkgname = perl-perl-critic-community diff --git a/.nvchecker.toml b/.nvchecker.toml new file mode 100644 index 0000000000000..3a3bdb520e322 --- /dev/null +++ b/.nvchecker.toml @@ -0,0 +1,3 @@ +[perl-perl-critic-community] +source = "cpan" +cpan = "Perl-Critic-Community" diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000000000..b87c5e4be4423 --- /dev/null +++ b/LICENSE @@ -0,0 +1,12 @@ +Copyright Arch Linux Contributors + +Permission to use, copy, modify, and/or distribute this software for +any purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED “AS IS” AND THE AUTHOR DISCLAIMS ALL +WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES +OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE +FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY +DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN +AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT +OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/LICENSES/0BSD.txt b/LICENSES/0BSD.txt new file mode 120000 index 0000000000000..ea5b60640b01f --- /dev/null +++ b/LICENSES/0BSD.txt @@ -0,0 +1 @@ +../LICENSE \ No newline at end of file diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000000000..bff3b3907e428 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,59 @@ +# Maintainer: ryoskzypu + +_dist='Perl-Critic-Community' +_pkgver='v1.0.4' +pkgname='perl-perl-critic-community' +pkgver=1.04 +pkgrel=1 +pkgdesc='Community-inspired Perl::Critic policies' +arch=('any') +url="https://metacpan.org/dist/$_dist" +license=('Artistic-2.0') +depends=( + 'perl-carp' + 'perl-exporter' + 'perl-path-tiny>=0.101' + 'perl-perl-critic-policy-plicease-prohibitarrayassignaref>=100.00' + 'perl-perl-critic-policy-variables-prohibitlooponhash>=0.005' + 'perl-perl-critic>=1.126' + 'perl-ppi>=1.254' + 'perl-scalar-list-utils>=1.33' + 'perl>=5.10.1' +) +makedepends=('perl-module-build-tiny>=0.034') +checkdepends=( + 'perl-module-metadata' + 'perl-pathtools' + 'perl-test-simple' +) +options=('!emptydirs') +source=("https://cpan.metacpan.org/authors/id/D/DB/DBOOK/$_dist-$_pkgver.tar.gz") +sha256sums=('3b31624ea0cf4392b8f4397a529515248814a2166697f1a453d58ab6f112d209') + +build() +{ + cd $_dist-$_pkgver + + unset PERL_MB_OPT PERL5LIB PERL_LOCAL_LIB_ROOT + + /usr/bin/perl Build.PL --create_packlist=0 + ./Build +} + +check() +{ + cd $_dist-$_pkgver + + unset PERL5LIB PERL_LOCAL_LIB_ROOT + + ./Build test +} + +package() +{ + cd $_dist-$_pkgver + + unset PERL5LIB PERL_LOCAL_LIB_ROOT + + ./Build install --installdirs=vendor --destdir="$pkgdir" +} diff --git a/REUSE.toml b/REUSE.toml new file mode 100644 index 0000000000000..49e3625ad0e49 --- /dev/null +++ b/REUSE.toml @@ -0,0 +1,25 @@ +version = 1 + +[[annotations]] +path = [ + "PKGBUILD", + "README.md", + "keys/**", + ".SRCINFO", + ".gitignore", + ".nvchecker.toml", + "*.install", + "*.sysusers", + "*sysusers.conf", + "*.tmpfiles", + "*tmpfiles.conf", + "*.logrotate", + "*.pam", + "*.service", + "*.socket", + "*.timer", + "*.desktop", + "*.hook", +] +SPDX-FileCopyrightText = "Arch Linux contributors" +SPDX-License-Identifier = "0BSD"