aports/community/perl-function-parameters/APKBUILD

39 lines
1.2 KiB
Plaintext

# Automatically generated by apkbuild-cpan, template 3
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-function-parameters
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Function-Parameters
pkgver=2.002003
pkgrel=0
pkgdesc="define functions and methods with parameter lists (subroutine signatures)"
url="https://metacpan.org/release/Function-Parameters/"
arch="all"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl"
makedepends="perl-dev"
checkdepends="perl-test-fatal"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/M/MA/MAUKE/Function-Parameters-$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
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="
5b25462fc55f15ecaabb2e448de605f46c4fe3eccdff2449e86b43bcec23f231b75b39255ef8be3f103b32645aa0c19631391a33055934398dd0bac667eb496b Function-Parameters-2.002003.tar.gz
"