diff options
Diffstat (limited to 'main/perl-module-pluggable')
-rw-r--r-- | main/perl-module-pluggable/APKBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/main/perl-module-pluggable/APKBUILD b/main/perl-module-pluggable/APKBUILD new file mode 100644 index 0000000000..dad6d931d9 --- /dev/null +++ b/main/perl-module-pluggable/APKBUILD @@ -0,0 +1,41 @@ +# Automatically generated by apkbuild-cpan, template 1 +# Contributor: Timo Teräs <timo.teras@iki.fi> +# Maintainer: Timo Teräs <timo.teras@iki.fi> +pkgname=perl-module-pluggable +_pkgreal=Module-Pluggable +pkgver=5.1 +pkgrel=0 +pkgdesc="automatically give your module the ability to have plugins" +url="http://search.cpan.org/dist/Module-Pluggable/" +arch="noarch" +license="GPL PerlArtistic" +cpandepends="" +cpanmakedepends=" " +depends="$cpandepends" +makedepends="perl-dev $cpanmakedepends" +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/S/SI/SIMONW/$_pkgreal-$pkgver.tar.gz" + +_builddir="$srcdir/$_pkgreal-$pkgver" + +prepare() { + cd "$_builddir" + export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` + perl Build.PL installdirs=vendor || return 1 +} + +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="1b71ed7a67ad8c048d1499540bc892ba Module-Pluggable-5.1.tar.gz" +sha256sums="e2dc354043bb16f1f3df8c4bb26070b26e594819f218cf8b8ac19e79c720916f Module-Pluggable-5.1.tar.gz" +sha512sums="2ed43516ff18f50ac494f6365296f42e7dfc6704a2b01d3661ca00c295ee378184757cb03381400fba8bc5f2df06241f2ee9ecf930af4d498b042c68069a670b Module-Pluggable-5.1.tar.gz" |