aports/testing/perl-cpan-changes/APKBUILD

45 lines
1.3 KiB
Text

# Automatically generated by apkbuild-cpan, template 4
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-cpan-changes
pkgver=0.500004
pkgrel=0
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=CPAN-Changes
pkgdesc="Parser for CPAN style change logs"
url="https://metacpan.org/release/CPAN-Changes/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl perl-module-runtime perl-moo perl-sub-quote perl-type-tiny"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/H/HA/HAARG/CPAN-Changes-$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
}
doc() {
local file; find "$pkgdir" -name "*.pod" | while read -r file; do
amove "${file#"$pkgdir"}"
done
default_doc
}
sha512sums="
c04eabd5cbdd44e7167d8f4dff58089baa48729582a84ad553153478a9beeb89c2afc6e650c83bf78d2fe689520f0ad5bf2f6e6bc8f17dfffd4cdc2ba6fcc9da CPAN-Changes-0.500004.tar.gz
"