# Automatically generated by apkbuild-cpan, template 1 # Contributor: Natanael Copa # Maintainer: Natanael Copa pkgname=perl-struct-dumb _pkgreal=Struct-Dumb pkgver=0.12 pkgrel=0 pkgdesc="Make simple lightweight record-like structures" url="https://metacpan.org/release/Struct-Dumb/" arch="noarch" license="GPL-1.0-or-later OR Artistic-1.0-Perl" makedepends="perl-dev perl-module-build" checkdepends="perl-test-fatal" subpackages="$pkgname-doc" source="https://cpan.metacpan.org/authors/id/P/PE/PEVANS/$_pkgreal-$pkgver.tar.gz" builddir="$srcdir/$_pkgreal-$pkgver" prepare() { default_prepare export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') perl Build.PL installdirs=vendor } build() { export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') ./Build } check() { ./Build test } package() { ./Build install destdir="$pkgdir" find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } sha512sums="52b8e2e7b0f073d1e24c941529989f1bd94d29e8c84abfc811baf3955bba5951b235128953260a149e9e52ee31c0759498cc9c3a283e350e618e8b004e50a132 Struct-Dumb-0.12.tar.gz"