# Automatically generated by apkbuild-cpan, template 1 # Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=perl-unicode-collate _pkgreal=Unicode-Collate pkgver=1.27 pkgrel=1 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 } check() { cd "$builddir" make test } package() { cd "$builddir" make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } doc() { default_doc replaces="perl-doc" } sha512sums="d7acd211151a49cff76923267a08ca0c2b87be0ab2af9bd28fd339bbf68ce34091d0df9aa42bf7d2072de34cf8986844265e17a97b0f65e96d1ff12573e3fe0c Unicode-Collate-1.27.tar.gz"