# Automatically generated by apkbuild-cpan, template 1 # Contributor: Carlo Landmeter # Maintainer: Natanael Copa pkgname=perl-unicode-string _pkgreal=Unicode-String pkgver=2.10 pkgrel=5 pkgdesc="String of Unicode characters for perl (UCS2/UTF16)" url="https://metacpan.org/release/Unicode-String" arch="all" license="GPL-1.0-or-later OR Artistic-1.0-Perl" depends="perl" makedepends="perl-dev" subpackages="$pkgname-doc" source="https://cpan.metacpan.org/authors/id/G/GA/GAAS/GAAS/Unicode-String-$pkgver.tar.gz" builddir="$srcdir/$_pkgreal-$pkgver" prepare() { default_prepare export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor } build() { export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') make } check() { make test } package() { make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } sha512sums="e1fad14dcda301d1e5199c9968efe2f33408fd56ef701d7ede40262a50d4d13a3b78ed7aab5c5319e63f551d40dd48b06dfd74e49f3e434b7b2f8d2f592f0b0e Unicode-String-2.10.tar.gz"