# Automatically generated by apkbuild-cpan, template 1 # Contributor: Jakub Jirutka # Maintainer: Jakub Jirutka setglobal pkgname = 'perl-sys-cpu' setglobal _pkgreal = 'Sys-CPU' setglobal pkgver = '0.61' setglobal pkgrel = '2' setglobal pkgdesc = '"Perl extension for getting CPU information'" setglobal url = '"http://search.cpan.org/dist/Sys-CPU/'" setglobal arch = '"all'" setglobal license = '"GPL PerlArtistic'" setglobal cpandepends = ''"" setglobal cpanmakedepends = ''"" setglobal depends = $cpandepends setglobal makedepends = ""perl-dev linux-headers $cpanmakedepends"" setglobal subpackages = ""$pkgname-doc"" setglobal source = ""http://search.cpan.org/CPAN/authors/id/M/MZ/MZSANFORD/$_pkgreal-$pkgver.tar.gz 0001-musl-compat.patch Sys-CPU-0.61-Add-support-for-cpu_type-on-ARM-and-AArch64-Linux-pl.patch"" setglobal builddir = ""$srcdir/$_pkgreal-$pkgver"" proc prepare { default_prepare || return 1 cd $builddir 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 = '"f43a3a50ac2dca6c1485a859ebef09b2 Sys-CPU-0.61.tar.gz 9d94c909cb3f08e410cd470cc006278d 0001-musl-compat.patch 4b3d6644299ff5419282e26286bdce20 Sys-CPU-0.61-Add-support-for-cpu_type-on-ARM-and-AArch64-Linux-pl.patch'" setglobal sha256sums = '"250a86b79c231001c4ae71d2f66428092a4fbb2070971acafd471aa49739c9e4 Sys-CPU-0.61.tar.gz 1fde5438497cd3ed925b30990e4fc493be7823eb13a169af0a6c3bef419ae648 0001-musl-compat.patch 616f5d25075c41716dc5888a487221a5d9fce29903d322b097424d828a6f900d Sys-CPU-0.61-Add-support-for-cpu_type-on-ARM-and-AArch64-Linux-pl.patch'" setglobal sha512sums = '"391e113c87d9044cd43c47f9f78a782fab65566a32c028c01f7f3335a5065b6755586ea3143356510c8d28a7d1ad572cc6203ec189eaaa379967bdbd0a0bd7bc Sys-CPU-0.61.tar.gz 7e3dd2efa3a9857b46d291510faf47c0120ece5705b9c58fc08a36d6ff54618acc8866554002572fa35768a44db319b59b73303e9a340734f28235d05f5174cb 0001-musl-compat.patch 171fe3b27fd03b79eeee567a5a3ad5b6419fbbeb6a90ca10028496c7ba825cf189cdf4fd8dea19cf3f8e43d57ff8b6613d331ef8a198092d771307351d9dab49 Sys-CPU-0.61-Add-support-for-cpu_type-on-ARM-and-AArch64-Linux-pl.patch'"