diff options
Diffstat (limited to 'community/perl-ima-dbi')
-rw-r--r-- | community/perl-ima-dbi/APKBUILD | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/community/perl-ima-dbi/APKBUILD b/community/perl-ima-dbi/APKBUILD index 480c83dc5d..da9e4e7bb5 100644 --- a/community/perl-ima-dbi/APKBUILD +++ b/community/perl-ima-dbi/APKBUILD @@ -4,7 +4,7 @@ pkgname=perl-ima-dbi _pkgreal=Ima-DBI pkgver=0.35 -pkgrel=1 +pkgrel=2 pkgdesc="unknown" url="http://search.cpan.org/dist/Ima-DBI/" arch="noarch" @@ -16,21 +16,28 @@ makedepends="perl-dev $cpanmakedepends" subpackages="$pkgname-doc" source="http://search.cpan.org/CPAN/authors/id/P/PE/PERRIN/$_pkgreal-$pkgver.tar.gz" -_builddir="$srcdir/$_pkgreal-$pkgver" +builddir="$srcdir/$_pkgreal-$pkgver" prepare() { - cd "$_builddir" + default_prepare + + cd "$builddir" PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor } build() { - cd "$_builddir" - make && make test + cd "$builddir" + make +} + +check() { + cd "$builddir" + make test } package() { - cd "$_builddir" - make DESTDIR="$pkgdir" install || return 1 + cd "$builddir" + make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } |