mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-05 04:16:46 +02:00
main/perl-universal-can: new aport
Needed by perl-test-mockobject checks
This commit is contained in:
parent
36f1c31bbb
commit
672f8a60b2
38
main/perl-universal-can/APKBUILD
Normal file
38
main/perl-universal-can/APKBUILD
Normal file
@ -0,0 +1,38 @@
|
||||
# Automatically generated by apkbuild-cpan, template 2
|
||||
# Contributor:
|
||||
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
|
||||
pkgname=perl-universal-can
|
||||
_pkgname=UNIVERSAL-can
|
||||
pkgver=1.20140328
|
||||
pkgrel=0
|
||||
pkgdesc="work around buggy code calling UNIVERSAL::can() as a function"
|
||||
url="https://metacpan.org/release/UNIVERSAL-can/"
|
||||
arch="noarch"
|
||||
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
|
||||
cpandepends=""
|
||||
cpanmakedepends=""
|
||||
cpancheckdepends=""
|
||||
depends="$cpandepends"
|
||||
makedepends="perl-dev $cpanmakedepends"
|
||||
checkdepends="$cpancheckdepends"
|
||||
subpackages="$pkgname-doc"
|
||||
source="https://cpan.metacpan.org/authors/id/C/CH/CHROMATIC/UNIVERSAL-can-$pkgver.tar.gz"
|
||||
builddir="$srcdir/$_pkgname-$pkgver"
|
||||
|
||||
build() {
|
||||
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
|
||||
PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor
|
||||
make
|
||||
}
|
||||
|
||||
check() {
|
||||
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
|
||||
make test
|
||||
}
|
||||
|
||||
package() {
|
||||
make DESTDIR="$pkgdir" install
|
||||
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
|
||||
}
|
||||
|
||||
sha512sums="6fb032b968fa87d95e6fa6897575c6374a2d43fe9d505e339e593bad398b444b9818c8214fe7ac67fa2cfa1013e5c6337c507c3ea6104c711e3ee3d5635f0bc0 UNIVERSAL-can-1.20140328.tar.gz"
|
||||
Loading…
x
Reference in New Issue
Block a user