aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/perl-test-compile/APKBUILD
blob: 357b20674c692d1b52e94395d8cef49a571cfb89 (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
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-test-compile
_pkgreal=Test-Compile
pkgver=v1.3.0
pkgrel=0
pkgdesc="Perl module for Test-Compile"
url="http://search.cpan.org/dist/Test-Compile/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends=""
cpanmakedepends="perl-module-build perl-devel-checkos perl-module-build 
	perl-test-warnings perl-universal-require"
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/E/EG/EGILES/$_pkgreal-$pkgver.tar.gz"

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

prepare() {
	cd "$_builddir"
	if [ -e Build.PL ]; then
		perl Build.PL installdirs=vendor || return 1
	else
		PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
	fi
}

build() {
	cd "$_builddir"
		export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	./Build && ./Build test
}

package() {
	cd "$_builddir"
	./Build install destdir="$pkgdir" || return 1
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

md5sums="c7e8c9255d818823d440ac640527e7f8  Test-Compile-v1.3.0.tar.gz"
sha256sums="77527e9477ac5260443c756367a7f7bc3d8f6c6ebbc561b0b2fb3f79303bad33  Test-Compile-v1.3.0.tar.gz"
sha512sums="58396ed37a668ad005955193dfdad435d4b92f16334ed83f1ec5de8e1046bef8eec452ccefa277311f8eb903c7872fcc6ebacfeba112621f8b8ca05841089ef8  Test-Compile-v1.3.0.tar.gz"