aports/testing/perl-test-utf8/APKBUILD

38 lines
1.1 KiB
Text

# Automatically generated by apkbuild-cpan, template 4
# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=perl-test-utf8
pkgver=1.03
pkgrel=0
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Test-utf8
pkgdesc="A collection of tests useful for dealing with utf8 strings"
url="https://metacpan.org/release/Test-utf8/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/S/SC/SCHWIGON/Test-utf8-$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="
4db3b87ccdc5c544ce085e8a8d6b468c119948e8d265f8429f23d325db5d840bd12e2a63566b92c3780f12d07d104dc4f3b1e943caecfdd05a8a0c4fab7b8a6a Test-utf8-1.03.tar.gz
"