aports/main/perl-class-tiny/APKBUILD
2023-07-03 18:51:58 +02:00

37 lines
1.1 KiB
Text

# Automatically generated by apkbuild-cpan, template 3
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-class-tiny
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Class-Tiny
pkgver=1.008
pkgrel=3
pkgdesc="Minimalist class construction"
url="https://metacpan.org/release/Class-Tiny/"
arch="noarch"
license="Apache-2.0"
depends="perl"
makedepends="perl-dev"
checkdepends="perl-test-failwarnings"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/D/DA/DAGOLDEN/Class-Tiny-$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="
908eb8547e01036ef361f0a8623d028b1e733ea003fc227788b9c18d0db544a70dbe47de18822f9699a19156f36eac73caeb4849d44eea14ada1128afdb7efbd Class-Tiny-1.008.tar.gz
"