# Automatically generated by apkbuild-cpan, template 1 # Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=perl-unicode-collate _pkgreal=Unicode-Collate pkgver=1.19 pkgrel=2 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 Unicode-Collate-1.19-Fixes-for-removal-dot-from-INC.patch " 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="580bca6e96dd474b223ec9f971d6b8a4fc96d1bbffdc278dfa679d511455940e088f19069647715c2ae7c8e52972a59107cbc6d1bf3537de1c314feab2f4c21b Unicode-Collate-1.19.tar.gz c80607164c7c6ff180770e4e296e645f04e7cda2868039a012c6fb51fdd6951703181165d1c71a7407f938df9ccff59c5ce63784e30b1a3ae8907d0b4b8dd1f3 Unicode-Collate-1.19-Fixes-for-removal-dot-from-INC.patch"