# Automatically generated by apkbuild-cpan, template 1 # Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=perl-unicode-collate _pkgreal=Unicode-Collate pkgver=1.14 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" prepare() { default_prepare || return 1 cd "$builddir" export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor } build() { cd "$builddir" export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') make && make test } package() { cd "$builddir" make DESTDIR="$pkgdir" install || return 1 find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } md5sums="c486b31f87bfa3875883f3c9fad9fd99 Unicode-Collate-1.14.tar.gz" sha256sums="628a5bb3b5e81c1d4cdf680bc882f2296a50892860af1800b31e796ee166767a Unicode-Collate-1.14.tar.gz" sha512sums="a234c7ebb2f92886a68e39b681cb428bf99dd999f6a12ce137b132824072a07a60df3d26a4b147b2ec52c61df4f7c2fab5dad5cb40cce27fdff021cdf8208568 Unicode-Collate-1.14.tar.gz"