APKBUILD 1.32 KB
Newer Older
1
# Automatically generated by apkbuild-cpan, template 1
2
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
3 4
pkgname=perl-module-scandeps
_pkgreal=Module-ScanDeps
5
pkgver=1.22
6 7 8 9 10
pkgrel=0
pkgdesc="Recursively scan Perl code for dependencies"
url="http://search.cpan.org/dist/Module-ScanDeps/"
arch="noarch"
license="GPL PerlArtistic"
11 12
cpanmakedepends="perl-test-requires"
makedepends="perl-dev $cpanmakedepends perl-test-pod"
13 14
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/R/RS/RSCHUPP/$_pkgreal-$pkgver.tar.gz"
15
builddir="$srcdir/$_pkgreal-$pkgver"
16 17

prepare() {
18 19
	default_prepare || return 1
	cd "$builddir"
20 21 22 23 24
	export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}

build() {
25
	cd "$builddir"
26 27 28 29 30
	export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	make && make test
}

package() {
31
	cd "$builddir"
32 33 34 35
	make DESTDIR="$pkgdir" install || return 1
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

36 37 38
md5sums="2f0ba5325c8ee0896db9f1407be89d94  Module-ScanDeps-1.22.tar.gz"
sha256sums="4670de213243cd0002838279f4d30c41879ff8d86a5740cd215cdb234f13f799  Module-ScanDeps-1.22.tar.gz"
sha512sums="ce3d86ae02fee983f619a1594feda5d3114d297bf47031227f1d87a8e4c444f25acf3ea7647289f05a5d9ff954ffea44cf2cd3a9159e147550f2d7823608a524  Module-ScanDeps-1.22.tar.gz"