diff options
author | Kiyoshi Aman <aphrael@alpinelinux.org> | 2012-04-05 19:52:14 -0400 |
---|---|---|
committer | Kiyoshi Aman <aphrael@alpinelinux.org> | 2012-04-05 19:55:46 -0400 |
commit | 551024421399fc52e96df6c0e593afc40b5a3836 (patch) | |
tree | 96cd0f24b194e8ea9ecaa694623305092eca4d49 /testing | |
parent | 0319ade6f072312647197d26bb88cb0a24eda5be (diff) | |
download | aports-551024421399fc52e96df6c0e593afc40b5a3836.tar.bz2 aports-551024421399fc52e96df6c0e593afc40b5a3836.tar.xz |
testing/perl-role-tiny: new APKBUILD
Diffstat (limited to 'testing')
-rw-r--r-- | testing/perl-role-tiny/APKBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/testing/perl-role-tiny/APKBUILD b/testing/perl-role-tiny/APKBUILD new file mode 100644 index 0000000000..8b35037c6c --- /dev/null +++ b/testing/perl-role-tiny/APKBUILD @@ -0,0 +1,39 @@ +# Automatically generated by apkbuild-cpan, template 1 +# Contributor: Kiyoshi Aman <kiyoshi.aman@gmail.com> +# Maintainer: Kiyoshi Aman <kiyoshi.aman@gmail.com> +pkgname=perl-role-tiny +_pkgreal=Role-Tiny +pkgver=1.000001 +pkgrel=0 +pkgdesc="Roles. Like a nouvelle cuisine portion size slice of Moose." +url="http://search.cpan.org/dist/Role-Tiny/" +arch="noarch" +license="GPL PerlArtistic" +cpandepends="" +cpanmakedepends="perl-test-fatal " +depends="$cpandepends" +makedepends="perl-dev $cpanmakedepends" +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/M/MS/MSTROUT/$_pkgreal-$pkgver.tar.gz" + +_builddir="$srcdir/$_pkgreal-$pkgver" + +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 && make test +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete +} + +md5sums="f563b6f0c9fea55349aa0ff23240268c Role-Tiny-1.000001.tar.gz" |