# Automatically generated by apkbuild-cpan, template 1 # Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=perl-unicode-collate _pkgreal=Unicode-Collate pkgver=1.23 pkgrel=0 pkgdesc="Unicode Collation Algorithm" url="http://search.cpan.org/dist/Unicode-Collate/" arch="all" license="GPL PerlArtistic" cpandepends="" cpanmakedepends=" " depends="$cpandepends" makedepends="perl-dev $cpanmakedepends" subpackages="$pkgname-doc" source="http://search.cpan.org/CPAN/authors/id/S/SA/SADAHIRO/$_pkgreal-$pkgver.tar.gz" builddir="$srcdir/$_pkgreal-$pkgver" build() { cd "$builddir" export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor make && make test } check() { cd "$builddir" make test } package() { cd "$builddir" make DESTDIR="$pkgdir" install || return 1 find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } doc() { default_doc replaces="perl-doc" } sha512sums="679b11fc4a1070c616dda04bead0635a7f890ac387191550c0f23f37588b07bc852e52046b2906b90f97e73e1e748d68e2eef713d4d44b0a14dcfaf9019cdf0b Unicode-Collate-1.23.tar.gz"