diff options
Diffstat (limited to 'community/perl-universal-moniker')
-rw-r--r-- | community/perl-universal-moniker/APKBUILD | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/community/perl-universal-moniker/APKBUILD b/community/perl-universal-moniker/APKBUILD index e8d71b1d8d..5f32892b36 100644 --- a/community/perl-universal-moniker/APKBUILD +++ b/community/perl-universal-moniker/APKBUILD @@ -4,7 +4,7 @@ pkgname=perl-universal-moniker _pkgreal=UNIVERSAL-moniker pkgver=0.08 -pkgrel=0 +pkgrel=1 pkgdesc="unknown" url="http://search.cpan.org/dist/UNIVERSAL-moniker/" arch="noarch" @@ -16,21 +16,26 @@ makedepends="perl-dev $cpanmakedepends" subpackages="$pkgname-doc" source="http://search.cpan.org/CPAN/authors/id/K/KA/KASEI/$_pkgreal-$pkgver.tar.gz" -_builddir="$srcdir/$_pkgreal-$pkgver" +builddir="$srcdir/$_pkgreal-$pkgver" prepare() { - cd "$_builddir" + 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 } |