diff options
Diffstat (limited to 'main/perl-class-mix')
-rw-r--r-- | main/perl-class-mix/APKBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/main/perl-class-mix/APKBUILD b/main/perl-class-mix/APKBUILD new file mode 100644 index 0000000000..72af68f911 --- /dev/null +++ b/main/perl-class-mix/APKBUILD @@ -0,0 +1,41 @@ +# Automatically generated by apkbuild-cpan, template 1 +# Contributor: Natanael Copa <ncopa@alpinelinux.org> +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=perl-class-mix +_pkgreal=Class-Mix +pkgver=0.005 +pkgrel=0 +pkgdesc="dynamic class mixing" +url="http://search.cpan.org/dist/Class-Mix/" +arch="noarch" +license="GPL PerlArtistic" +cpandepends="perl-params-classify" +cpanmakedepends=" " +depends="$cpandepends" +makedepends="perl-dev $cpanmakedepends" +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/Z/ZE/ZEFRAM/$_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="7d6c4e70dea13678d845898a4a1565c0 Class-Mix-0.005.tar.gz" +sha256sums="054d0db62df90f22601f2a18fc84e9ca026d81601f5940b2fcc543e39d69b36b Class-Mix-0.005.tar.gz" +sha512sums="9486a8ec4f6b1a5483610cdac110eed219bb849e8895a350309167206f8caef4209abbbc340a467f4c3b2ca3afc6e2b49b66601110517b66684689f4d88d20c9 Class-Mix-0.005.tar.gz" |