diff options
author | Carlo Landmeter <clandmeter@alpinelinux.org> | 2017-11-10 22:14:06 +0000 |
---|---|---|
committer | Carlo Landmeter <clandmeter@alpinelinux.org> | 2017-11-10 22:27:55 +0000 |
commit | ff75f59d29c57ed283d328b55f8065dbe35a65dd (patch) | |
tree | 0ea677e877fa36020882d04cccfd9d90f77e8c34 /main/perl-module-scandeps/APKBUILD | |
parent | 2657397f5b02eb0c1c9cf7a99cd254859bdf2f99 (diff) | |
download | aports-ff75f59d29c57ed283d328b55f8065dbe35a65dd.tar.bz2 aports-ff75f59d29c57ed283d328b55f8065dbe35a65dd.tar.xz |
community/perl-module-scandeps: move to main
moved due to perl-module-install
Diffstat (limited to 'main/perl-module-scandeps/APKBUILD')
-rw-r--r-- | main/perl-module-scandeps/APKBUILD | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/main/perl-module-scandeps/APKBUILD b/main/perl-module-scandeps/APKBUILD new file mode 100644 index 0000000000..8320ef4772 --- /dev/null +++ b/main/perl-module-scandeps/APKBUILD @@ -0,0 +1,44 @@ +# Automatically generated by apkbuild-cpan, template 1 +# Maintainer: Stuart Cardall <developer@it-offshore.co.uk> +pkgname=perl-module-scandeps +_pkgreal=Module-ScanDeps +pkgver=1.24 +pkgrel=0 +pkgdesc="Recursively scan Perl code for dependencies" +url="http://search.cpan.org/dist/Module-ScanDeps/" +arch="noarch" +license="GPL PerlArtistic" +cpanmakedepends="perl-test-requires" +makedepends="perl-dev $cpanmakedepends perl-test-pod" +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/R/RS/RSCHUPP/$_pkgreal-$pkgver.tar.gz" +builddir="$srcdir/$_pkgreal-$pkgver" + +prepare() { + default_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 +} + +package() { + cd "$builddir" + + make DESTDIR="$pkgdir" install + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete +} + +check() { + cd "$builddir" + make test +} + +sha512sums="7f3d9821aa863d8ebc78fb5fb3c7172ce133169ec54ed91b90e05ba50654b4bd0282b3a760adfc8b6bd553dda4116dbf51972bb2af94b59f6f04daeba996e889 Module-ScanDeps-1.24.tar.gz" |