diff options
author | Timothy Legge <timlegge@gmail.com> | 2019-03-23 23:27:59 +0000 |
---|---|---|
committer | Kevin Daudt <kdaudt@alpinelinux.org> | 2019-03-26 11:41:06 +0000 |
commit | 6be3b42f00906f11e3efe6b2966f1aa923641248 (patch) | |
tree | a08806653d88a414ef6ad30ee532191cc4b63c64 /testing | |
parent | e75ee09546af2e5f84bfb760cd757fec695b7da6 (diff) | |
download | aports-6be3b42f00906f11e3efe6b2966f1aa923641248.tar.bz2 aports-6be3b42f00906f11e3efe6b2966f1aa923641248.tar.xz |
testing/perl-type-tiny: new aport
Diffstat (limited to 'testing')
-rw-r--r-- | testing/perl-type-tiny/APKBUILD | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/testing/perl-type-tiny/APKBUILD b/testing/perl-type-tiny/APKBUILD new file mode 100644 index 0000000000..334ea34d31 --- /dev/null +++ b/testing/perl-type-tiny/APKBUILD @@ -0,0 +1,38 @@ +# Automatically generated by apkbuild-cpan, template 2 +# Contributor: Timothy Legge <timlegge@gmail.com> +# Maintainer: Timothy Legge <timlegge@gmail.com> +pkgname=perl-type-tiny +_pkgreal=Type-Tiny +pkgver=1.004004 +pkgrel=0 +pkgdesc="tiny, yet Moo(se)-compatible type constraint" +url="https://metacpan.org/release/Type-Tiny/" +arch="noarch" +license="GPL PerlArtistic" +cpandepends="perl-exporter-tiny" +depends="$cpandepends" +makedepends="perl-dev" +subpackages="$pkgname-doc" +source="https://cpan.metacpan.org/authors/id/T/TO/TOBYINK/Type-Tiny-$pkgver.tar.gz" +builddir="$srcdir/$_pkgreal-$pkgver" + +build() { + cd "$builddir" + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor + make +} + +check() { + cd "$builddir" + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + make test +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete +} + +sha512sums="a1e09c5a3369e0a9ea8e172d86e68e818a720c5c4d633103a442fe389f7a8a7b4a03b2487ffd09f184caf4eca94ef471cc9293b04557b8d4dd260649b4121673 Type-Tiny-1.004004.tar.gz" |