aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-sys-cpu/APKBUILD
blob: f6fd4f52cb87afb6f9bbb5d1026b8d1e13f88b3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=perl-sys-cpu
_pkgreal=Sys-CPU
pkgver=0.61
pkgrel=3
pkgdesc="Perl extension for getting CPU information"
url="http://search.cpan.org/dist/Sys-CPU/"
arch="all"
license="GPL PerlArtistic"
cpandepends=""
cpanmakedepends=""
depends="$cpandepends"
makedepends="perl-dev linux-headers $cpanmakedepends"
subpackages="$pkgname-doc"
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"
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="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"
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"
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"