# Automatically generated by apkbuild-cpan, template 1 # Contributor: Carlo Landmeter # Maintainer: Natanael Copa setglobal pkgname = 'perl-unicode-string' setglobal _pkgreal = 'Unicode-String' setglobal pkgver = '2.09' setglobal pkgrel = '5' setglobal pkgdesc = '"String of Unicode characters for perl (UCS2/UTF16)'" setglobal url = '"http://search.cpan.org/dist/Unicode-String/'" setglobal arch = '"all'" setglobal license = '"GPL PerlArtistic'" setglobal cpandepends = ''"" setglobal cpanmakedepends = '" '" setglobal depends = $cpandepends setglobal makedepends = ""perl-dev $cpanmakedepends"" setglobal subpackages = ""$pkgname-doc"" setglobal source = ""http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/$_pkgreal-$pkgver.tar.gz perl-Unicode-String-2.09-undefined.patch "" setglobal _builddir = ""$srcdir/$_pkgreal-$pkgver"" proc prepare { cd $_builddir for i in [$source] { match $i { with *.patch msg $i; patch -p1 -i "$srcdir"/$i || return 1 } } export CFLAGS=$[perl -MConfig -E 'say $Config{ccflags}] env PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor } proc build { cd $_builddir export CFLAGS=$[perl -MConfig -E 'say $Config{ccflags}] make && make test } proc package { cd $_builddir make DESTDIR="$pkgdir" install || return 1 find $pkgdir '(' -name perllocal.pod -o -name .packlist ')' -delete } setglobal md5sums = '"553e68e603723bf7c631f8701ab0d678 Unicode-String-2.09.tar.gz b08a47f2bd8b046a98fe4951f3eb6e43 perl-Unicode-String-2.09-undefined.patch'" setglobal sha256sums = '"c817bedb954ea2d488bade56059028b99e0198f6826482e2f68fd6d78653faad Unicode-String-2.09.tar.gz 7128483d06c846a9fbfbc1dc501b755b879914885f12559fec30ac4f6fb12d39 perl-Unicode-String-2.09-undefined.patch'" setglobal sha512sums = '"88bd5fe4a1e8ac05b7da5f75411f3e2cb17fb756ca926ace7f46d047ba7a7f22e54462efb61c2f0bf651d2c63d6fe74bffa8b7bcf49aa59847135a43b5cde759 Unicode-String-2.09.tar.gz b25a6c91d5ecc11dd3c8a675024111a3dfadaf3b22f2b3000f5fb3f7e79741b28aafa709b3c72ff7e6f4f936d8fbc38f50ca5994513b47badb57a31872e99450 perl-Unicode-String-2.09-undefined.patch'"