diff options
Diffstat (limited to 'testing/perl-sub-name/APKBUILD')
-rw-r--r-- | testing/perl-sub-name/APKBUILD | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/testing/perl-sub-name/APKBUILD b/testing/perl-sub-name/APKBUILD new file mode 100644 index 0000000000..a2e4e8131b --- /dev/null +++ b/testing/perl-sub-name/APKBUILD @@ -0,0 +1,37 @@ +# Automatically generated by apkbuild-cpan, template 1 +# Contributor: Francesco Colista <francesco.colista@gmail.com> +# Maintainer: Francesco Colista <francesco.colista@gmail.com> +pkgname=perl-sub-name +_pkgreal=Sub-Name +pkgver=0.05 +pkgrel=0 +pkgdesc="(re)name a sub" +url="http://search.cpan.org/dist/Sub-Name/" +arch="all" +license="GPL PerlArtistic" +cpandepends="" +cpanmakedepends="" +depends="$cpandepends" +makedepends="perl-dev $cpanmakedepends" +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/F/FL/FLORA/$_pkgreal-$pkgver.tar.gz" + +_builddir="$srcdir/$_pkgreal-$pkgver" + +prepare() { + cd "$_builddir" + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor +} + +build() { + cd "$_builddir" + make && make test +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete +} + +md5sums="26077202597620e4a6068c8087f3e09f Sub-Name-0.05.tar.gz" |