diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2016-08-26 12:17:38 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2016-08-26 12:25:30 +0000 |
commit | ace7c8cdbdb9b88abe41ffc7de363c26616372ea (patch) | |
tree | ebc049fa1940bfdcb640fce052f17e42a4cb05d5 /community/perl-dbix-contextualfetch | |
parent | 12792615e5fd7e2f851385bf3a3661a2657fc800 (diff) | |
download | aports-ace7c8cdbdb9b88abe41ffc7de363c26616372ea.tar.bz2 aports-ace7c8cdbdb9b88abe41ffc7de363c26616372ea.tar.xz |
community/perl-dbix-contextualfetch: moved from unmaintained
Diffstat (limited to 'community/perl-dbix-contextualfetch')
-rw-r--r-- | community/perl-dbix-contextualfetch/APKBUILD | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/community/perl-dbix-contextualfetch/APKBUILD b/community/perl-dbix-contextualfetch/APKBUILD new file mode 100644 index 0000000000..5bfa735fea --- /dev/null +++ b/community/perl-dbix-contextualfetch/APKBUILD @@ -0,0 +1,37 @@ +# Automatically generated by apkbuild-cpan, template 1 +# Contributor: Francesco Colista <fcolista@alpinelinux.org> +# Maintainer: Francesco Colista <fcolista@alpinelinux.org> +pkgname=perl-dbix-contextualfetch +_pkgreal=DBIx-ContextualFetch +pkgver=1.03 +pkgrel=0 +pkgdesc="Add contextual fetches to DBI" +url="http://search.cpan.org/dist/DBIx-ContextualFetch/" +arch="noarch" +license="GPL PerlArtistic" +cpandepends="perl-dbi" +cpanmakedepends="" +depends="$cpandepends" +makedepends="perl-dev $cpanmakedepends" +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/T/TM/TMTM/$_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="20a78432ae26b266216b7b30ff7941c3 DBIx-ContextualFetch-1.03.tar.gz" |