* add perl-moo

This commit is contained in:
Alexander Baldeck 2024-09-10 14:11:00 +02:00
parent 254979314d
commit 381c4b076f
3 changed files with 63 additions and 0 deletions

20
perl/perl-moo/.SRCINFO Normal file
View File

@ -0,0 +1,20 @@
pkgbase = perl-moo
pkgdesc = Minimalist Object Orientation (with Moose compatiblity)
pkgver = 2.005005
pkgrel = 4
url = https://metacpan.org/release/Moo
arch = any
license = PerlArtistic
license = GPL
makedepends = perl-test-fatal>=0.003
depends = perl-class-method-modifiers>=1.1
depends = perl-devel-globaldestruction>=0.11
depends = perl-import-into>=1.002
depends = perl-module-runtime>=0.014
depends = perl-role-tiny>=2
depends = perl-sub-quote
options = !emptydirs
source = https://cpan.metacpan.org/authors/id/H/HA/HAARG/Moo-2.005005.tar.gz
sha256sums = fb5a2952649faed07373f220b78004a9c6aba387739133740c1770e9b1f4b108
pkgname = perl-moo

View File

@ -0,0 +1,3 @@
[perl-moo]
source = "cpan"
cpan = "Moo"

40
perl/perl-moo/PKGBUILD Normal file
View File

@ -0,0 +1,40 @@
# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
# Maintainer: Sergej Pupykin <arch+pub@sergej.pp.ru>
# Maintainer: Moritz Bunkus <moritz@bunkus.org>
pkgname='perl-moo'
pkgver=2.005005
pkgrel=4
pkgdesc="Minimalist Object Orientation (with Moose compatiblity)"
arch=('any')
license=('PerlArtistic' 'GPL')
options=('!emptydirs')
depends=('perl-class-method-modifiers>=1.1' 'perl-devel-globaldestruction>=0.11' 'perl-import-into>=1.002'
'perl-module-runtime>=0.014' 'perl-role-tiny>=2' 'perl-sub-quote')
makedepends=('perl-test-fatal>=0.003')
url='https://metacpan.org/release/Moo'
source=("https://cpan.metacpan.org/authors/id/H/HA/HAARG/Moo-${pkgver}.tar.gz")
sha256sums=('fb5a2952649faed07373f220b78004a9c6aba387739133740c1770e9b1f4b108')
build() {
cd "$srcdir"/Moo-$pkgver
export PERL_MM_USE_DEFAULT=1 PERL5LIB="" \
PERL_AUTOINSTALL=--skipdeps \
PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='"$pkgdir"'" \
PERL_MB_OPT="--installdirs vendor --destdir '"$pkgdir"'" \
MODULEBUILDRC=/dev/null
perl Makefile.PL
make
}
check() {
cd "$srcdir"/Moo-$pkgver
export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
# make test
}
package() {
cd "$srcdir"/Moo-$pkgver
make install
find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
}