From 982ef99b9d654bce96b92bd07837b73ef7c0b876 Mon Sep 17 00:00:00 2001 From: ryoskzypu Date: Thu, 19 Feb 2026 23:36:06 -0300 Subject: [PATCH] Add Perl::Critic::Policy::Variables::ProhibitLoopOnHash 0.009 --- .SRCINFO | 18 ++++++++++++++++ .nvchecker.toml | 3 +++ LICENSE | 12 +++++++++++ LICENSES/0BSD.txt | 1 + PKGBUILD | 53 +++++++++++++++++++++++++++++++++++++++++++++++ REUSE.toml | 25 ++++++++++++++++++++++ 6 files changed, 112 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..e95ab2bf29028 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = perl-perl-critic-policy-variables-prohibitlooponhash + pkgdesc = Don't write loops on hashes, only on keys and values of hashes + pkgver = 0.009 + pkgrel = 1 + url = https://metacpan.org/dist/Perl-Critic-Policy-Variables-ProhibitLoopOnHash + arch = any + license = MIT + checkdepends = perl-pathtools + checkdepends = perl-test-simple + depends = perl + depends = perl-carp + depends = perl-perl-critic>=1.126 + depends = perl-scalar-list-utils>=1.33 + options = !emptydirs + source = https://cpan.metacpan.org/authors/id/X/XS/XSAWYERX/Perl-Critic-Policy-Variables-ProhibitLoopOnHash-0.009.tar.gz + sha256sums = ce4a334de0927fc45dcb35edfc81be6381528a528195b2f877304aa83d761ea5 + +pkgname = perl-perl-critic-policy-variables-prohibitlooponhash diff --git a/.nvchecker.toml b/.nvchecker.toml new file mode 100644 index 0000000000000..a1730d8e4fbb3 --- /dev/null +++ b/.nvchecker.toml @@ -0,0 +1,3 @@ +[perl-perl-critic-policy-variables-prohibitlooponhash] +source = "cpan" +cpan = "Perl-Critic-Policy-Variables-ProhibitLoopOnHash" 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..2193eebf94153 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,53 @@ +# Maintainer: ryoskzypu + +_dist='Perl-Critic-Policy-Variables-ProhibitLoopOnHash' +pkgname='perl-perl-critic-policy-variables-prohibitlooponhash' +pkgver=0.009 +pkgrel=1 +pkgdesc="Don't write loops on hashes, only on keys and values of hashes" +arch=('any') +url="https://metacpan.org/dist/$_dist" +license=('MIT') +depends=( + 'perl' + 'perl-carp' + 'perl-perl-critic>=1.126' + 'perl-scalar-list-utils>=1.33' +) +checkdepends=( + 'perl-pathtools' + 'perl-test-simple' +) +options=('!emptydirs') +source=("https://cpan.metacpan.org/authors/id/X/XS/XSAWYERX/$_dist-$pkgver.tar.gz") +sha256sums=('ce4a334de0927fc45dcb35edfc81be6381528a528195b2f877304aa83d761ea5') + +build() +{ + cd $_dist-$pkgver + + unset PERL_MM_OPT PERL5LIB PERL_LOCAL_LIB_ROOT + export PERL_MM_USE_DEFAULT=1 + + /usr/bin/perl Makefile.PL NO_PACKLIST=1 NO_PERLLOCAL=1 + make +} + +check() +{ + cd $_dist-$pkgver + + unset PERL5LIB PERL_LOCAL_LIB_ROOT + + make test +} + +package() +{ + cd $_dist-$pkgver + + unset PERL5LIB PERL_LOCAL_LIB_ROOT + + make install INSTALLDIRS=vendor DESTDIR="$pkgdir" + install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/" +} 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"