aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-devel-checkos/APKBUILD
blob: b720962f98ca2f09c3742c44e9f0b27802e33225 (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
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-devel-checkos
_pkgreal=Devel-CheckOS
pkgver=1.76
pkgrel=0
pkgdesc="unknown"
url="http://search.cpan.org/dist/Devel-CheckOS/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends="perl-data-compare perl-file-find-rule"
cpanmakedepends="   "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/D/DC/DCANTRELL/$_pkgreal-$pkgver.tar.gz"

_builddir="$srcdir/$_pkgreal-$pkgver"

prepare() {
	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="700ce608fed7a0c0867371e6a6619098  Devel-CheckOS-1.76.tar.gz"
sha256sums="f83fb4cb8de060f607214b1e88c98ac6c4e065371e646fe896f16ea887aecb0c  Devel-CheckOS-1.76.tar.gz"
sha512sums="e915281fdd57e6d804a7c2cd1c4fe5114ca02f61f7cc0ef0e9a9c8d23cb54f793d433804a301cc02d9a83fee34b71d9876795b133114c9697703ab7b1681353e  Devel-CheckOS-1.76.tar.gz"