aports/main/perl-module-pluggable/APKBUILD

38 lines
1.1 KiB
Text

# Automatically generated by apkbuild-cpan, template 4
# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=perl-module-pluggable
pkgver=6.3
pkgrel=0
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Module-Pluggable
pkgdesc="automatically give your module the ability to have plugins"
url="https://metacpan.org/release/Module-Pluggable/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/S/SI/SIMONW/Module-Pluggable-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
build() {
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL \
INSTALLDIRS=vendor \
NO_PACKLIST=1 \
NO_PERLLOCAL=1
make
}
check() {
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make test
}
package() {
make DESTDIR="$pkgdir" install
}
sha512sums="
6ea3ffe30dcbc73300ded186d8237435d539056f90790834cc53d73f1e01397dc8935c892891bf7320a4c92be34ddf3a1412fca0f2451ec0058a964a9da58fd9 Module-Pluggable-6.3.tar.gz
"