diff --git a/testing/perl-color-ansi-util/APKBUILD b/testing/perl-color-ansi-util/APKBUILD new file mode 100644 index 00000000000..828b67e02e6 --- /dev/null +++ b/testing/perl-color-ansi-util/APKBUILD @@ -0,0 +1,38 @@ +# Automatically generated by apkbuild-cpan, template 4 +# Contributor: Celeste +# Maintainer: Celeste +pkgname=perl-color-ansi-util +pkgver=0.165 +pkgrel=0 +#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan +_pkgreal=Color-ANSI-Util +pkgdesc="Routines for dealing with ANSI colors" +url="https://metacpan.org/release/Color-ANSI-Util/" +arch="noarch" +license="GPL-1.0-or-later OR Artistic-1.0-Perl" +depends="perl perl-color-rgb-util" +subpackages="$pkgname-doc" +source="https://cpan.metacpan.org/authors/id/P/PE/PERLANCAR/Color-ANSI-Util-$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 +} + +sha512sums=" +219da41d94882cf2b31e91a4c117d6520832b2410cf96669d0afadb50cbcd85902f7513df1b7908c45cfafa6122e9c75641ba2d58bfc4444da78d1899c8bc62f Color-ANSI-Util-0.165.tar.gz +"